SlashResponder

interface SlashResponder : Responder

A modified responder for slash commands.

Functions

Link copied to clipboard
open suspend override fun respond(message: Any, embed: suspend EmbedBuilder.() -> Unit?): Message?

Create an ephemeral slash response with text and/or an embed.

Link copied to clipboard
open suspend fun respondMenu(menuBuilder: suspend MenuBuilder.() -> Unit): Message

Respond with a Menu.

Link copied to clipboard
open suspend fun respondPublic(message: Any = "", embed: suspend EmbedBuilder.() -> Unit? = null): InteractionResponseBehavior?

Create a public slash response with text and/or an embed.

Properties

Link copied to clipboard
abstract val channel: MessageChannelBehavior

The channel that this entity was invoked in.

Link copied to clipboard
abstract val interaction: ApplicationCommandInteraction?

The interaction to respond from.

Inheritors

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