Minor adjustment to slashCommand handler.

This commit is contained in:
Kwafuri
2024-02-12 23:30:37 +00:00
parent eedaa2c626
commit b93426ca91
+3 -1
View File
@@ -24,7 +24,9 @@ module.exports = async (client) => {
slashCommands.push({ slashCommands.push({
name: slashCommand.name, name: slashCommand.name,
description: slashCommand.description, 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) { if (slashCommand.name) {