forked from Supositware/Haha-Yes
Add permission needed by the bot
This commit is contained in:
parent
bbe894a66f
commit
48871bc16e
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { SlashCommandBuilder } from '@discordjs/builders';
|
import { SlashCommandBuilder } from '@discordjs/builders';
|
||||||
|
import { Permissions } from 'discord.js';
|
||||||
export default {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('fakeuser')
|
.setName('fakeuser')
|
||||||
|
@ -16,6 +16,7 @@ export default {
|
||||||
option.setName('image')
|
option.setName('image')
|
||||||
.setDescription('Optional attachment.')
|
.setDescription('Optional attachment.')
|
||||||
.setRequired(false)),
|
.setRequired(false)),
|
||||||
|
clientPermissions: [ Permissions.FLAGS.MANAGE_WEBHOOKS ],
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ ephemeral: true });
|
||||||
const attachment = interaction.options.getAttachment('image');
|
const attachment = interaction.options.getAttachment('image');
|
||||||
|
|
Loading…
Reference in a new issue