mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
force delete afk
This commit is contained in:
parent
2cbbda8f11
commit
c3c6e63ac2
1 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,15 @@ class Setafk extends Command {
|
|||
async run(message, args, data) {
|
||||
const reason = args.join(" ");
|
||||
if (!reason) return message.error("general/setafk:MISSING_REASON");
|
||||
if (reason === "delete") {
|
||||
if (data.userData.afk) {
|
||||
data.userData.afk = null;
|
||||
await data.userData.save();
|
||||
message.sendT("general/setafk:DELETED", {
|
||||
username: message.author.username
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
message.success("general/setafk:SUCCESS", {
|
||||
reason
|
||||
|
|
Loading…
Reference in a new issue