fix bot crash on bot response with only text

This commit is contained in:
SowinskiBraeden committed 2022-09-24 10:41:30 -07:00
1 parent 8fbe602597
commit 7fbbd2d70f
15 files changed
+20 -20

No files matched your search

+2 -2
View File
@@ -54,7 +54,7 @@ module.exports = {
*/
run: async (client, interaction, args, { GuildDB }) => {
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
return interaction.send(`You are not allowed to use the bot in this channel.`);
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
}
const missing = !GuildDB.dispatchChannel && !GuildDB.dispatcherRole
@@ -112,7 +112,7 @@ module.exports = {
} catch (err) {
return interaction.send(`<@${client.user.id}> Does not have permissions to send to the channel.\nMake sure your admins give <@${client.user.id}> access to all channels required. `)
}
return interaction.send('A report has been sent via 311.');
return interaction.send({ content: 'A report has been sent via 311.' });
},
},
}