Added getRole, getChannel, getCategory functions

This commit is contained in:
Noah committed 2021-12-15 00:19:40 -06:00
1 parent 6107d268f7
commit 2c7be5882c
9 files changed
+97 -120

No files matched your search

+4 -4
View File
@@ -25,10 +25,10 @@ module.exports = new Command({
permission: "SEND_MESSAGES",
async run(interaction) {
const suggestChannel = interaction.guild.channels.cache.find(
(channel) =>
channel.name === supportbot.SuggestionChannel ||
channel.id === supportbot.SuggestionChannel
const { getRole, getChannel, getCategory } = interaction.client;
const suggestChannel = await getChannel(
supportbot.SuggestionChannel,
interaction.guild
);
const NoChannel = new Discord.MessageEmbed()