ChatCommandSource
class ChatCommandSource(event: MessageCreateEvent, command: String, prefixUsed: String, scope: CoroutineScope) : CoroutineScope
Content copied to clipboard
Command source for chat commands. Provides easy access to the message event objects.
Constructors
ChatCommandSource
Link copied to clipboard
fun ChatCommandSource(event: MessageCreateEvent, command: String, prefixUsed: String, scope: CoroutineScope)
Content copied to clipboard
Functions
Properties
client
Link copied to clipboard
coroutineContext
Link copied to clipboard
event
Link copied to clipboard
prefixUsed
Link copied to clipboard
Extensions
respondEmbed
Link copied to clipboard
suspend fun ChatCommandSource.respondEmbed(builder: EmbedBuilder.() -> Unit): Message
Content copied to clipboard
Builds an EmbedCreateSpec and sends it in the channel that the command was invoked in.
Content copied to clipboard
Sends an embed based on the EmbedCreateSpec in the channel that the command was invoked in.
respondMessage
Link copied to clipboard
Builds a message spec with only content and sends it in the channel the command was invoked in.
suspend fun ChatCommandSource.respondMessage(builder: MessageBuilder.() -> Unit): Message
Content copied to clipboard
Builds a MessageCreateSpec and sends it in the channel that the command was invoked in.
suspend fun ChatCommandSource.respondMessage(template: MessageCreateSpec): Message
Content copied to clipboard
Sends a message based on the MessageCreateSpec in the channel that the command was invoked in.
suspend fun ChatCommandSource.respondMessage(vararg specs: EmbedCreateSpec): Message
Content copied to clipboard
Sends an embed based on the EmbedCreateSpec in the channel that the command was invoked in.
Sources
jvm source
Link copied to clipboard