clean my code + fix permissions error?
This commit is contained in:
1 parent
b396cd742b
commit
a24a616459
8 files changed
+18
-25
No files matched your search
@@ -31,7 +31,7 @@ module.exports = {
|
||||
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
|
||||
}
|
||||
|
||||
let useCommand = await client.verifyUseCommand(GuildDB.serverID, interaction.member.roles, true);
|
||||
let useCommand = await client.verifyUseCommand(GuildDB.serverID, interaction.member.roles);
|
||||
if (!useCommand) return interaction.send({ content: "You don't have permission to use this command" });
|
||||
|
||||
let user = await client.dbo.collection("users").findOne({"user.discord.id":interaction.member.user.id}).then(user => user);
|
||||
|
||||
Reference in new issue
Block a user