SlashCommand
Interface
Property | Type | Description |
---|---|---|
name | string | The name of the command. Optional: ✕ |
description | string | The description of the command. Optional: ✕ |
isSlashCommand | boolean | If true, the command will be marked as slash command. Optional: ✔ |
ignoreRegister | boolean | If true, the command will not be registered. Optional: ✔ |
options | SlashCommandOptions[] | The options of the command. Optional: ✔ |
permissions | SlashCommandPermissions[] | The permissions of the command. Optional: ✔ |
guilds | string[] or string | The guild(s) the command should be registered with. If left empty, the command will be registered globally. Optional: ✔ |
execute | SlashCommandExecutor | The main function of the command. Optional: ✕ |
Last updated