fix bugs/add tweet command
This commit is contained in:
4 files changed
+63
-7
No files matched your search
+3
-3
@@ -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] });
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user