@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull content: @NotNull CharSequence, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends an plain-text message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
content
- CharSequence: the content of the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull content: @NotNull CharSequence, @NotNull errorHandler: @NotNull Runnable, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends an plain-text message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
content
- CharSequence: the content of the message
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(channel: TextChannel!, content: CharSequence!): @NotNull MessageAction
Sends an plain-text message safely in a TextChannel
.
channel
- TextChannel!: the channel the message should get send int
content
- CharSequence!: the content of the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull embedBuilder: @NotNull EmbedBuilder, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends an embed message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
embedBuilder
- EmbedBuilder: the builder of the embed
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull embedBuilder: @NotNull EmbedBuilder, @NotNull errorHandler: @NotNull Runnable, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends an embed message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
embedBuilder
- EmbedBuilder: the builder of the embed
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull embedBuilder: @NotNull EmbedBuilder): @NotNull MessageAction
Sends an embed message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
embedBuilder
- EmbedBuilder: the builder of the embed
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull EmbedBuilder, @NotNull errorHandler: @NotNull Runnable): @NotNull MessageAction
Sends an embed message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull embed: @NotNull MessageEmbed, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends an embed message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
embed
- MessageEmbed: the embed of the message
deleteAfter
- Long: the time after the message should get delete
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull embed: @NotNull MessageEmbed, @NotNull errorHandler: @NotNull Runnable, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends an embed message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
embed
- MessageEmbed: the embed of the message
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull embed: @NotNull MessageEmbed): @NotNull MessageAction
Sends an embed message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
embed
- MessageEmbed: the embed of the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull MessageBuilder, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends a message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
message
- MessageBuilder: the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull MessageBuilder, @NotNull errorHandler: @NotNull Runnable, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends a message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
message
- MessageBuilder: the message
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull MessageBuilder): @NotNull MessageAction
Sends a message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
message
- MessageBuilder: the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull MessageBuilder, @NotNull errorHandler: @NotNull Runnable): @NotNull MessageAction
Sends a message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
message
- MessageBuilder: the builder of the message
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull Message, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends a message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
message
- Message: the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull Message, @NotNull errorHandler: @NotNull Runnable, deleteAfter: Long, @NotNull unit: @NotNull TimeUnit): @NotNull CompletionStage<Message!>
Sends a message safely in a TextChannel
and deletes it after a specified amount of time.
channel
- TextChannel: the channel the message should get send int
message
- Message: the message
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
deleteAfter
- Long: the time after the message should get deleted again
unit
- TimeUnit: the unit of the deleteAfter
parameter
Return
CompletionStage<Message!>: a CompletionStage
containing the sent message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull Message): @NotNull MessageAction
Sends a message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
message
- Message: the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull message: @NotNull Message, @NotNull errorHandler: @NotNull Runnable): @NotNull MessageAction
Sends a message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
message
- Message: the message
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull embed: @NotNull MessageEmbed, @NotNull errorHandler: @NotNull Runnable): @NotNull MessageAction
Sends an embed message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
embed
- MessageEmbed: the embed
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
Return
MessageAction: a MessageAction
that sends the message
@NotNull open static fun sendMessage(@NotNull channel: @NotNull TextChannel, @NotNull content: @NotNull CharSequence, @NotNull errorHandler: @NotNull Runnable): @NotNull MessageAction
Sends a plain-text message safely in a TextChannel
.
channel
- TextChannel: the channel the message should get send int
content
- CharSequence: the content of the message
errorHandler
- Runnable: a Runnable
that should get executed when there is no permission to execute the message
Return
MessageAction: a MessageAction
that sends the message