clean my code + fix permissions error?

This commit is contained in:
SowinskiBraeden committed 2024-01-23 13:59:11 -08:00
1 parent b396cd742b
commit a24a616459
8 files changed
+18 -25

No files matched your search

+1 -1
View File
@@ -37,7 +37,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);