fix bot crash on bot response with only text
This commit is contained in:
15 files changed
+20
-20
No files matched your search
@@ -379,7 +379,7 @@ module.exports = {
|
||||
|
||||
if (permissions.includes("MANAGE_GUILD")) canUseCommand = true;
|
||||
if (client.exists(GuildDB.botAdmin) && interaction.member.roles.includes(GuildDB.botAdmin)) canUseCommand = true;
|
||||
if (!canUseCommand) return interaction.send('You don\'t have the permissions to use this command.');
|
||||
if (!canUseCommand) return interaction.send({ content: 'You don\'t have the permissions to use this command.' });
|
||||
|
||||
if (args[0].name == 'allowed_channels') {
|
||||
const channelid = args[0].options[0].options[0].value;
|
||||
|
||||
Reference in new issue
Block a user