better error handling
This commit is contained in:
14 files changed
+160
-157
No files matched your search
+1
-1
@@ -46,7 +46,7 @@ module.exports = {
|
||||
const channel = interaction.guild.channels.cache.find(channel => channel.id === GuildDB.tweetChannel);
|
||||
if (!channel) {
|
||||
const embed = new EmbedBuilder()
|
||||
.setDescriptions(`**Internal Error:** ${err}\nThe channel may have been deleted\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
|
||||
.setDescription(`**Internal Error:** ${err}\nThe channel may have been deleted\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
|
||||
.setColor(client.config.Colors.Red)
|
||||
|
||||
return interaction.send({ embeds: [embed] });
|
||||
|
||||
Reference in new issue
Block a user