SlashCommandBuilder

class SlashCommandBuilder(val name: String, val description: String, guildOnly: Boolean = false, val specificGuildOnly: Boolean = false)(source)

A builder for Slash Commands

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.

Constructors

Link copied to clipboard
constructor(name: String, description: String, guildOnly: Boolean = false, specificGuildOnly: Boolean = false)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toJson(): JsonNode

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard