mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Удалить ответ и сообщение пользователя setafk через 10 секунд
This commit is contained in:
parent
1a174a9b11
commit
6762a3d526
1 changed files with 6 additions and 1 deletions
|
@ -33,10 +33,15 @@ class Setafk extends Command {
|
|||
data.userData.afk = reason;
|
||||
data.userData.save();
|
||||
|
||||
return message.success("general/setafk:SUCCESS", {
|
||||
const m = await message.success("general/setafk:SUCCESS", {
|
||||
reason,
|
||||
prefix: data.guild.prefix
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
if (m.deletable) m.delete();
|
||||
if (message.deletable) message.delete();
|
||||
}, 10 * 1000);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue