From b93426ca917a98770023e42c1ad5ab2d08aac78d Mon Sep 17 00:00:00 2001 From: Kwafuri Date: Mon, 12 Feb 2024 23:30:37 +0000 Subject: [PATCH] Minor adjustment to slashCommand handler. --- handlers/slashCommand.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handlers/slashCommand.js b/handlers/slashCommand.js index 09a59a8..a816dc7 100644 --- a/handlers/slashCommand.js +++ b/handlers/slashCommand.js @@ -24,7 +24,9 @@ module.exports = async (client) => { slashCommands.push({ name: slashCommand.name, description: slashCommand.description, - type: slashCommand.type + type: slashCommand.type, + options: slashCommand.options ? slashCommand.options : null, + default_member_permissions: slashCommand.default_member_permissions ? PermissionsBitField.resolve(slashCommand.default_member_permissions).toString() : null, }); if (slashCommand.name) {