retrieveWebhookByIdOrNull

suspend fun JDA.retrieveWebhookByIdOrNull(webhookId: Long): Webhook?(source)

Deprecated

Moved to the BotCommands-jda-ktx module You can find & replace: Find: io.github.freya022.botcommands.api.core.utils.retrieveWebhookByIdOrNull Replace: dev.freya02.botcommands.jda.ktx.retrieve.retrieveWebhookByIdOrNull

Retrieves a Webhook from the provided ID, see JDA.retrieveWebhookById for more details.

Throws the same exceptions as JDA.retrieveWebhookById, minus ErrorResponse.UNKNOWN_WEBHOOK.

See also