BotCommands
3.0.0-beta.7
      Target filter
Search in API
Skip to content
    BotCommands
BotCommands-jda-ktx/dev.freya02.botcommands.jda.ktx.retrieve/retrieveMessageByIdOrNull

retrieveMessageByIdOrNull

suspend fun MessageChannel.retrieveMessageByIdOrNull(id: Long): Message?(source)
suspend fun MessageChannel.retrieveMessageByIdOrNull(id: String): Message?(source)

Same as MessageChannel.retrieveMessageById, but returns null on ErrorResponse.UNKNOWN_MESSAGE.


suspend fun WebhookClient<*>.retrieveMessageByIdOrNull(id: String, threadId: String? = null): Message?(source)

Same as WebhookClient.retrieveMessageById, but returns null on ErrorResponse.UNKNOWN_MESSAGE.

Generated by Dokka
© 2025 Copyright