Minor adjustment to slashCommand handler.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user