set for 911/911 feature/debugging
This commit is contained in:
5 files changed
+421
-62
No files matched your search
+11
-4
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user