Added getRole, getChannel, getCategory functions
This commit is contained in:
1 parent
6107d268f7
commit
2c7be5882c
9 files changed
+97
-120
No files matched your search
+4
-4
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user