forked from Galactic/galactic-bot
use default member perms for slash commands
This commit is contained in:
parent
aea940f568
commit
db2ff57224
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user