Gateway handler filters every ws events.

Hierarchy

  • GatewayHandler

Constructors

Properties

calendarHandler: CalendarHandler = ...
channelHandler: ChannelHandler = ...
client: Client
docHandler: DocHandler = ...
forumThreadHandler: ForumThreadHandler = ...
guildHandler: GuildHandler = ...
listItemHandler: ListItemHandler = ...
messageHandler: MessageHandler = ...
toHandlerMap: Record<"BotServerMembershipCreated" | "BotServerMembershipDeleted" | "ChatMessageCreated" | "ChatMessageUpdated" | "ChatMessageDeleted" | "ChannelMessageReactionCreated" | "ChannelMessageReactionDeleted" | "ServerChannelCreated" | "ServerChannelUpdated" | "ServerChannelDeleted" | "ForumTopicCreated" | "ForumTopicUpdated" | "ForumTopicDeleted" | "ForumTopicPinned" | "ForumTopicUnpinned" | "ForumTopicReactionCreated" | "ForumTopicReactionDeleted" | "ForumTopicCommentCreated" | "ForumTopicCommentUpdated" | "ForumTopicCommentDeleted" | "ForumTopicCommentReactionCreated" | "ForumTopicCommentReactionDeleted" | "ForumTopicLocked" | "ForumTopicUnlocked" | "ServerMemberBanned" | "ServerMemberUnbanned" | "ServerMemberJoined" | "ServerMemberRemoved" | "ServerMemberUpdated" | "ServerRolesUpdated" | "ServerWebhookCreated" | "ServerWebhookUpdated" | "DocCreated" | "DocUpdated" | "DocDeleted" | "CalendarEventCreated" | "CalendarEventUpdated" | "CalendarEventDeleted" | "CalendarEventRsvpUpdated" | "CalendarEventRsvpDeleted" | "CalendarEventRsvpManyUpdated" | "ListItemCreated" | "ListItemUpdated" | "ListItemDeleted" | "ListItemCompleted" | "ListItemUncompleted", ((data: object) => void)> = ...
webhookHandler: WebhookHandler = ...

Methods

  • Parameters

    • eventType: "BotServerMembershipCreated" | "BotServerMembershipDeleted" | "ChatMessageCreated" | "ChatMessageUpdated" | "ChatMessageDeleted" | "ChannelMessageReactionCreated" | "ChannelMessageReactionDeleted" | "ServerChannelCreated" | "ServerChannelUpdated" | "ServerChannelDeleted" | "ForumTopicCreated" | "ForumTopicUpdated" | "ForumTopicDeleted" | "ForumTopicPinned" | "ForumTopicUnpinned" | "ForumTopicReactionCreated" | "ForumTopicReactionDeleted" | "ForumTopicCommentCreated" | "ForumTopicCommentUpdated" | "ForumTopicCommentDeleted" | "ForumTopicCommentReactionCreated" | "ForumTopicCommentReactionDeleted" | "ForumTopicLocked" | "ForumTopicUnlocked" | "ServerMemberBanned" | "ServerMemberUnbanned" | "ServerMemberJoined" | "ServerMemberRemoved" | "ServerMemberUpdated" | "ServerRolesUpdated" | "ServerWebhookCreated" | "ServerWebhookUpdated" | "DocCreated" | "DocUpdated" | "DocDeleted" | "CalendarEventCreated" | "CalendarEventUpdated" | "CalendarEventDeleted" | "CalendarEventRsvpUpdated" | "CalendarEventRsvpDeleted" | "CalendarEventRsvpManyUpdated" | "ListItemCreated" | "ListItemUpdated" | "ListItemDeleted" | "ListItemCompleted" | "ListItemUncompleted"
    • eventData: object

    Returns Promise<void>