fix crash on basic message response
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -110,7 +110,7 @@ module.exports = {
|
||||
try {
|
||||
channel.send({ content: `<@&${GuildDB.dispatcherRole}> New 311 report`, embeds: [embed311], components: [opt] });
|
||||
} 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.' });
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user