fix client not respond on /account
This commit is contained in:
1 parent
e79ba906af
commit
7565a75575
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -39,7 +39,7 @@ module.exports = {
|
|||||||
client.users.fetch(interaction.member.user.id)
|
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)}))
|
.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)});
|
.catch(err => {client.log(err)});
|
||||||
return
|
return interaction.send('Your account details have been sent in your dm.');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -28,6 +28,7 @@ module.exports = (client, guild) => {
|
|||||||
try {
|
try {
|
||||||
await GuildAPI.commands.post({ data: dataStuff });
|
await GuildAPI.commands.post({ data: dataStuff });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (client.config.Dev=="DEVELOPMENT") console.log(e);
|
||||||
client.log('Error: API missing permissions, re-invite the bot');
|
client.log('Error: API missing permissions, re-invite the bot');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user