SlashCommandBuilder

constructor(name: String, description: String, guildOnly: Boolean = false, specificGuildOnly: Boolean = false)(source)

Parameters

name

The name of the slash command.

description

The description of the slash command.

guildOnly

Whether the slash command can only be used in guilds.

specificGuildOnly

Whether the slash command can only be used in a specific guild/s.