diff --git a/src/index.js b/src/index.js index 83cb4b1..99d12bc 100644 --- a/src/index.js +++ b/src/index.js @@ -202,9 +202,15 @@ bot.once("ready", async () => { type: command.type, description: command.helpText, options: options, - dm_permission: !command.guildOnly, + integration_types: [0], + contexts: [0], }; + if (!command.guildOnly) { + formattedCommand.integration_types.push(1); + formattedCommand.contexts.push(1, 2); + } + if (command.type === Dysnomia.Constants.ApplicationCommandTypes.CHAT_INPUT) formattedCommand.name = formattedCommand.name.toLowerCase();