forked from Galactic/galactic-bot
utilise dm_permission
This commit is contained in:
parent
27727cd3b3
commit
9166e97042
@ -44,7 +44,9 @@ class SlashCommand extends Command {
|
||||
description: this.description,
|
||||
type: CommandsConstant.ApplicationCommandTypes[this.type],
|
||||
options: this.options.map((o) => o.shape),
|
||||
defaultPermission: this.defaultPermission
|
||||
// defaultPermission: this.defaultPermission,
|
||||
// eslint-disable-next-line camelcase
|
||||
dm_permission: !this.guildOnly
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user