Better finds
This commit is contained in:
1 parent
02394e310d
commit
7eb949f109
7 files changed
+98
-126
No files matched your search
+5
-7
@@ -25,13 +25,11 @@ module.exports = new Command({
|
||||
permission: "SEND_MESSAGES",
|
||||
|
||||
async run(interaction) {
|
||||
const suggestChannel =
|
||||
interaction.guild.channels.cache.find(
|
||||
(channel) => channel.name === supportbot.SuggestionChannel
|
||||
) ||
|
||||
interaction.guild.channels.cache.find(
|
||||
(channel) => channel.id === supportbot.SuggestionChannel
|
||||
);
|
||||
const suggestChannel = interaction.guild.channels.cache.find(
|
||||
(channel) =>
|
||||
channel.name === supportbot.SuggestionChannel ||
|
||||
channel.id === supportbot.SuggestionChannel
|
||||
);
|
||||
|
||||
const NoChannel = new Discord.MessageEmbed()
|
||||
.setTitle("Missing Channel!")
|
||||
|
||||
Reference in new issue
Block a user