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