fix bugs/add tweet command

This commit is contained in:
SowinskiBraeden committed 2022-07-03 15:16:23 -07:00
1 parent 31cc42961c
commit 918b383a48
4 files changed
+63 -7

No files matched your search

+3 -3
View File
@@ -8,7 +8,6 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
aliases: ["action", "do"],
/**
*
* @param {require("../structures/LinesPoliceCadBot")} client
@@ -46,9 +45,10 @@ module.exports = {
if (client.exists(GuildDB.actionChannel)) {
const channel = interaction.guild.channels.cache.find(channel => channel.id === GuildDB.actionChannel);
return channel.send({ embeds: [actionEmbed] });
channel.send({ embeds: [actionEmbed] });
return interaction.send('Action performed');
} else {
return interaction.send({ embeds: [actionEmbed] });
return interaction.send({ content: 'Action performed', embeds: [actionEmbed] });
}
},
},