Interfacegatewayv0.1.4
EventGateContext
The event arm. It extends GuildPermissionsContext with the event payload and the djs objects derived from it. Names is the event(s) the gate supports, inferred from the ctx annotation, so a gate that reads one event's payload is rejected on a handler for a different event. The default supports every event.
interface EventGateContext<
Names extends ValidNonInteractionKeys = ValidNonInteractionKeys
> extends GuildPermissionsContextNames
The event name or names the gate reads, typing payload to that event's args tuple.
Names extends ValidNonInteractionKeys = ValidNonInteractionKeysreadonly core: Corereadonly eventName: Namesreadonly kind: 'event'readonly member: GuildMember | nullreadonly payload: ClientEvents[Names]