Packages@robojs/discordjs
buildSlashCommands()
Function: buildSlashCommands()
function buildSlashCommands(
commands,
config?,
dev?): SlashCommandBuilder[]Build slash commands for Discord API.
Parameters
| Parameter | Type |
|---|---|
commands | Record<string, CommandEntry> |
config? | DiscordConfig |
dev? | boolean |
Returns
SlashCommandBuilder[]
