DefaultGatewayEventInterceptor

Default implementation of GatewayEventInterceptor that also updates cache.

Parameters

customContextCreator

This function is invoked inside of handle to create an object that is inserted into customContext. Note that it will only be invoked if this particular handle invocation actually creates an Event.

Constructors

Link copied to clipboard
constructor()
constructor(customContextCreator: CustomContextCreator?)

Functions

Link copied to clipboard
open suspend override fun handle(event: ShardEvent, kord: Kord): Event?

Converts a gateway event (in the form of a ShardEvent) to a core event.