Better finds

This commit is contained in:
Noah committed 2021-11-21 18:42:18 -06:00
1 parent 02394e310d
commit 7eb949f109
7 files changed
+98 -126

No files matched your search

+5 -7
View File
@@ -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!")