respond

suspend fun Message.respond(content: String, useReply: Boolean = true, pingInReply: Boolean = true): Message

Respond to a message in the channel it was sent to, mentioning the author.

Return

The newly-created response message.

Parameters

useReply

Whether to use Discord's replies feature to respond, instead of a mention. Defaults to true.

pingInReply

When useReply is true, whether to also ping the user in the reply. Ignored if useReply is false.

content

Message content.


suspend fun Message.respond(useReply: Boolean = true, pingInReply: Boolean = true, builder: suspend MessageCreateBuilder.() -> Unit): Message

Respond to a message in the channel it was sent to, mentioning the author.

Return

The newly-created response message.

Parameters

useReply

Whether to use Discord's replies feature to respond, instead of a mention. Defaults to true.

pingInReply

When useReply is true, whether to also ping the user in the reply. Ignored if useReply is false.

builder

Builder lambda for populating the message fields.