diff --git a/src/structure/interfaces/commands/SlashCommand.js b/src/structure/interfaces/commands/SlashCommand.js index 66936d4..ad773d3 100644 --- a/src/structure/interfaces/commands/SlashCommand.js +++ b/src/structure/interfaces/commands/SlashCommand.js @@ -1,5 +1,6 @@ const Command = require('./Command.js'); const { Commands: CommandsConstant } = require('../../../constants/'); +const { Permissions } = require('discord.js'); // eslint-disable-next-line no-unused-vars // const { DiscordClient } = require('../../DiscordClient.js'); @@ -46,7 +47,9 @@ class SlashCommand extends Command { options: this.options.map((o) => o.shape), // defaultPermission: this.defaultPermission, // eslint-disable-next-line camelcase - dm_permission: !this.guildOnly + dm_permission: !this.guildOnly, + // eslint-disable-next-line camelcase + default_member_permissions: this.memberPermissions.length ? new Permissions(this.memberPermissions).bitfield.toString() : null }; }