diff --git a/src/commands/addBannedWord.ts b/src/commands/addBannedWord.ts index b150b6c..84b0fe9 100644 --- a/src/commands/addBannedWord.ts +++ b/src/commands/addBannedWord.ts @@ -2,7 +2,7 @@ import Discord,{SlashCommandBuilder} from 'discord.js'; import { TClient } from 'src/client'; export default { async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){ - if (!client.isStaff(interaction.member) && !client.config.eval.whitelist.includes(interaction.member.id)) return client.youNeedRole(interaction, 'dcmod') + if (!client.isStaff(interaction.member) && !client.config.eval.whitelist.includes(interaction.member.id)) return client.youNeedRole(interaction, 'admin') const word = interaction.options.getString('word'); if (client.bannedWords._content.includes(word)) return interaction.reply({content: 'That word is already added to the list.', ephemeral: true}); client.bannedWords.addData(word).forceSave(); @@ -16,4 +16,4 @@ export default { .setName('word') .setDescription('What word do you want automod to ban?') .setRequired(true)) -} \ No newline at end of file +}