From 6762a3d526986611b5935757b4f6b2cecdd3cfc3 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 11 Jan 2022 19:59:03 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BE=D1=82=D0=B2=D0=B5=D1=82=20=D0=B8=20=D1=81=D0=BE=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8F=20setafk=20?= =?UTF-8?q?=D1=87=D0=B5=D1=80=D0=B5=D0=B7=2010=20=D1=81=D0=B5=D0=BA=D1=83?= =?UTF-8?q?=D0=BD=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/setafk.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/General/setafk.js b/commands/General/setafk.js index 99d46bb2..e9df0d4a 100644 --- a/commands/General/setafk.js +++ b/commands/General/setafk.js @@ -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); }; } };