From 07318d0d4a840fb4694929ae242a629103e23a60 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 18 Nov 2022 21:51:05 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Administration/selectroles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/Administration/selectroles.js b/commands/Administration/selectroles.js index 14e2778f..002883dd 100644 --- a/commands/Administration/selectroles.js +++ b/commands/Administration/selectroles.js @@ -41,7 +41,7 @@ class Selectroles extends BaseCommand { * @param {import("../../base/JaBa")} client */ async onLoad(client) { - client.on("interactionCreate", interaction => { + client.on("interactionCreate", async interaction => { if (!interaction.isSelectMenu()) return; if (interaction.customId === "auto_roles") { @@ -50,11 +50,11 @@ class Selectroles extends BaseCommand { }); for (const id of removed) { - interaction.member.roles.remove(id.value); + await interaction.member.roles.remove(id.value); } for (const id of interaction.values) { - interaction.member.roles.add(id); + await interaction.member.roles.add(id); } interaction.reply({