diff --git a/commands/General/setafk.js b/commands/General/setafk.js index a012a227..765c50d6 100644 --- a/commands/General/setafk.js +++ b/commands/General/setafk.js @@ -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