From 48871bc16e8c9f80e4b369bd9cb646c80c55aa38 Mon Sep 17 00:00:00 2001 From: Supositware Date: Mon, 22 Aug 2022 19:18:11 +0200 Subject: [PATCH] Add permission needed by the bot --- commands/fun/fakeuser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/fun/fakeuser.js b/commands/fun/fakeuser.js index ed7ab0d..a96c97a 100644 --- a/commands/fun/fakeuser.js +++ b/commands/fun/fakeuser.js @@ -1,5 +1,5 @@ import { SlashCommandBuilder } from '@discordjs/builders'; - +import { Permissions } from 'discord.js'; export default { data: new SlashCommandBuilder() .setName('fakeuser') @@ -16,6 +16,7 @@ export default { option.setName('image') .setDescription('Optional attachment.') .setRequired(false)), + clientPermissions: [ Permissions.FLAGS.MANAGE_WEBHOOKS ], async execute(interaction) { await interaction.deferReply({ ephemeral: true }); const attachment = interaction.options.getAttachment('image');