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'); } });