From 7565a7557534e10ff3d1f1f68ff64287d7c7b70e Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Mon, 21 Mar 2022 16:47:40 -0700 Subject: [PATCH] fix client not respond on /account --- commands/account.js | 2 +- util/RegisterSlashCommands.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/account.js b/commands/account.js index ffa8610..ec2fdb8 100644 --- a/commands/account.js +++ b/commands/account.js @@ -39,7 +39,7 @@ module.exports = { client.users.fetch(interaction.member.user.id) .then(duser => duser.send(`<@${interaction.member.user.id}> Logged in as **${user.user.username}** | **${user.user.email}**`).catch(err => {client.log(err)})) .catch(err => {client.log(err)}); - return + return interaction.send('Your account details have been sent in your dm.'); }, }, } \ No newline at end of file diff --git a/util/RegisterSlashCommands.js b/util/RegisterSlashCommands.js index 9971540..53af612 100644 --- a/util/RegisterSlashCommands.js +++ b/util/RegisterSlashCommands.js @@ -28,6 +28,7 @@ module.exports = (client, guild) => { try { await GuildAPI.commands.post({ data: dataStuff }); } catch (e) { + if (client.config.Dev=="DEVELOPMENT") console.log(e); client.log('Error: API missing permissions, re-invite the bot'); } });