fix: fix the fiter for the interaction collector

This commit is contained in:
GramingFoxTeam
2023-03-21 18:09:05 +03:00
parent 6551ca9dad
commit a9ff00394a
2 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import {
ContextMenuCommandBuilder,
ApplicationCommandType
} from 'discord.js';
import trainAISelectMenu from '../utils/trainAISelectMenu.js';
export default {
data: new ContextMenuCommandBuilder()
@@ -12,11 +13,11 @@ export default {
interaction.member.roles.highest.comparePositionTo(
interaction.member.guild.roles.cache.get(config.discord.trainRole)
) < 0
)
return interaction.reply({
) return interaction.reply({
content: 'You don\'t have the permission to do this.',
ephemeral: true
});
trainAISelectMenu(interaction, config, helper);
}
};