set for 911/911 feature/debugging

This commit is contained in:
SowinskiBraeden committed 2022-08-05 15:26:00 -07:00
1 parent 1325a1f80c
commit 7fd292650d
5 files changed
+421 -62

No files matched your search

+11 -4
View File
@@ -32,13 +32,20 @@ module.exports = {
}
const actionEmbed = new MessageEmbed()
.setColor(client.config.EmbedColor)
.setTitle('Action Performed')
.setDescription(`<@${interaction.member.user.id}> - *${args[0].value}*`)
.setTimestamp()
.setColor(client.config.EmbedColor)
.setTitle('Action Performed')
.setDescription(`<@${interaction.member.user.id}> - *${args[0].value}*`)
.setTimestamp()
if (client.exists(GuildDB.actionChannel)) {
const channel = interaction.guild.channels.cache.find(channel => channel.id === GuildDB.actionChannel);
if (!channel) {
const embed = new MessageEmbed()
.setDescriptions(`**Internal Error:** ${err}\nThe channel may have been deleted\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
.setColor("RED")
return interaction.send({ embeds: [embed] });
}
channel.send({ embeds: [actionEmbed] });
return interaction.send('Action performed');
} else {