fix crash on basic message response

This commit is contained in:
SowinskiBraeden committed 2022-09-24 10:55:58 -07:00
1 parent 0b08b010f4
commit 91ee6ff7ad
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ module.exports = {
try { try {
channel.send({ content: `<@&${GuildDB.dispatcherRole}> New 311 report`, embeds: [embed311], components: [opt] }); channel.send({ content: `<@&${GuildDB.dispatcherRole}> New 311 report`, embeds: [embed311], components: [opt] });
} catch (err) { } 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({ content: `<@${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({ content: 'A report has been sent via 311.' }); return interaction.send({ content: 'A report has been sent via 311.' });
}, },