From b6e92b2a526caa34c7fbfba96c552f0466a59c1d Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Mon, 27 Nov 2023 17:21:44 +0300 Subject: [PATCH] remove deprecated stuff --- src/commands/color.ts | 2 +- src/commands/pronouns.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/color.ts b/src/commands/color.ts index 26441a4..117156b 100644 --- a/src/commands/color.ts +++ b/src/commands/color.ts @@ -46,7 +46,7 @@ export default { .addBooleanOption((option) => option.setName('preview').setDescription('Preview the color instead of applying it') ) - .setDefaultPermission(false), + .setDefaultMemberPermissions(0), execute: async (interaction: CommandInteraction) => { if (!interaction.isChatInputCommand()) return; diff --git a/src/commands/pronouns.ts b/src/commands/pronouns.ts index 5afb59a..2cb7077 100644 --- a/src/commands/pronouns.ts +++ b/src/commands/pronouns.ts @@ -18,7 +18,7 @@ export default { .setRequired(true) .setChoices(...Array.from(pronouns.values()).map(extendOption)) ) - .setDefaultPermission(false), + .setDefaultMemberPermissions(0), execute: async (interaction: CommandInteraction) => { if (!interaction.isChatInputCommand()) return;