From 48b57cba5fb0773ebe50c6228b1d8fd918c64f16 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@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 +}