utilise dm_permission

This commit is contained in:
Erik 2022-04-30 22:41:37 +03:00
parent 27727cd3b3
commit 9166e97042
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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
};
}