From 9166e97042468e3b54fe146354835080f1d24578 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 30 Apr 2022 22:41:37 +0300 Subject: [PATCH] utilise dm_permission --- src/structure/interfaces/commands/SlashCommand.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structure/interfaces/commands/SlashCommand.js b/src/structure/interfaces/commands/SlashCommand.js index 7743a38..66936d4 100644 --- a/src/structure/interfaces/commands/SlashCommand.js +++ b/src/structure/interfaces/commands/SlashCommand.js @@ -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 }; }