GlobalExceptionHandlerAdapter

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun handle(@Nullable event: @Nullable Event, throwable: Throwable)
open fun handle(event: ModalInteractionEvent, throwable: Throwable)
open fun handle(event: MessageContextInteractionEvent, throwable: Throwable)
open fun handle(event: SlashCommandInteractionEvent, throwable: Throwable)
open fun handle(event: UserContextInteractionEvent, throwable: Throwable)
open fun handle(event: ButtonInteractionEvent, throwable: Throwable)
open fun handle(event: EntitySelectInteractionEvent, throwable: Throwable)
open fun handle(event: StringSelectInteractionEvent, throwable: Throwable)
open fun handle(event: MessageReceivedEvent, throwable: Throwable)
Link copied to clipboard
fun onException(@Nullable event: @Nullable Event, throwable: Throwable)
Note: You are sent a generic Event, you will need to check it against SlashCommandInteractionEvent, GuildMessageReceivedEvent, etc...