From 8e98a1ef09c194ade526d0a9d06b007293ad4acc Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sat, 3 Dec 2022 01:52:26 +1100 Subject: [PATCH] on second thought, it should be admin only. --- src/commands/addBannedWord.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}