Gateway handler filters every ws events.

Constructors

Properties

announcementHandler: AnnouncementHandler
calendarHandler: CalendarHandler
channelHandler: ChannelHandler
client: Client
docHandler: DocHandler
forumThreadHandler: ForumThreadHandler
guildHandler: GuildHandler
listItemHandler: ListItemHandler
messageHandler: MessageHandler
toHandlerMap: Record<
    | "BotServerMembershipCreated"
    | "BotServerMembershipDeleted"
    | "GroupCreated"
    | "GroupUpdated"
    | "GroupDeleted"
    | "UserStatusCreated"
    | "UserStatusDeleted"
    | "ChatMessageCreated"
    | "ChatMessageUpdated"
    | "ChatMessageDeleted"
    | "AnnouncementCreated"
    | "AnnouncementUpdated"
    | "AnnouncementReactionCreated"
    | "AnnouncementReactionDeleted"
    | "AnnouncementDeleted"
    | "AnnouncementCommentCreated"
    | "AnnouncementCommentUpdated"
    | "AnnouncementCommentDeleted"
    | "AnnouncementCommentReactionCreated"
    | "AnnouncementCommentReactionDeleted"
    | "ChannelMessageReactionCreated"
    | "ChannelMessageReactionDeleted"
    | "ChannelMessageReactionManyDeleted"
    | "ChannelMessagePinned"
    | "ChannelMessageUnpinned"
    | "ServerChannelCreated"
    | "ServerChannelUpdated"
    | "ServerChannelDeleted"
    | "ChannelRolePermissionCreated"
    | "ChannelRolePermissionUpdated"
    | "ChannelRolePermissionDeleted"
    | "ChannelUserPermissionCreated"
    | "ChannelUserPermissionUpdated"
    | "ChannelUserPermissionDeleted"
    | "ChannelArchived"
    | "ChannelRestored"
    | "ChannelCategoryUserPermissionCreated"
    | "ChannelCategoryUserPermissionUpdated"
    | "ChannelCategoryUserPermissionDeleted"
    | "ChannelCategoryRolePermissionCreated"
    | "ChannelCategoryRolePermissionUpdated"
    | "ChannelCategoryRolePermissionDeleted"
    | "ForumTopicCreated"
    | "ForumTopicUpdated"
    | "ForumTopicDeleted"
    | "ForumTopicPinned"
    | "ForumTopicUnpinned"
    | "ForumTopicReactionCreated"
    | "ForumTopicReactionDeleted"
    | "ForumTopicCommentCreated"
    | "ForumTopicCommentUpdated"
    | "ForumTopicCommentDeleted"
    | "ForumTopicCommentReactionCreated"
    | "ForumTopicCommentReactionDeleted"
    | "ForumTopicLocked"
    | "ForumTopicUnlocked"
    | "ServerMemberBanned"
    | "ServerMemberUnbanned"
    | "ServerMemberJoined"
    | "ServerMemberRemoved"
    | "ServerMemberUpdated"
    | "ServerRolesUpdated"
    | "ServerMemberSocialLinkCreated"
    | "ServerMemberSocialLinkUpdated"
    | "ServerMemberSocialLinkDeleted"
    | "RoleCreated"
    | "RoleUpdated"
    | "RoleDeleted"
    | "ServerWebhookCreated"
    | "ServerWebhookUpdated"
    | "DocCreated"
    | "DocUpdated"
    | "DocDeleted"
    | "DocReactionCreated"
    | "DocReactionDeleted"
    | "DocCommentCreated"
    | "DocCommentUpdated"
    | "DocCommentDeleted"
    | "DocCommentReactionCreated"
    | "DocCommentReactionDeleted"
    | "CalendarEventCreated"
    | "CalendarEventUpdated"
    | "CalendarEventDeleted"
    | "CalendarEventRsvpUpdated"
    | "CalendarEventRsvpDeleted"
    | "CalendarEventRsvpManyUpdated"
    | "CalendarEventReactionCreated"
    | "CalendarEventReactionDeleted"
    | "CalendarEventCommentCreated"
    | "CalendarEventCommentUpdated"
    | "CalendarEventCommentDeleted"
    | "CalendarEventCommentReactionCreated"
    | "CalendarEventCommentReactionDeleted"
    | "ListItemCreated"
    | "ListItemUpdated"
    | "ListItemDeleted"
    | "ListItemCompleted"
    | "ListItemUncompleted"
    | "CategoryCreated"
    | "CategoryUpdated"
    | "CategoryDeleted", ((data: object) => void)> = ...
userHandler: UserHandler
webhookHandler: WebhookHandler

Methods

  • Parameters

    • eventType:
          | "BotServerMembershipCreated"
          | "BotServerMembershipDeleted"
          | "GroupCreated"
          | "GroupUpdated"
          | "GroupDeleted"
          | "UserStatusCreated"
          | "UserStatusDeleted"
          | "ChatMessageCreated"
          | "ChatMessageUpdated"
          | "ChatMessageDeleted"
          | "AnnouncementCreated"
          | "AnnouncementUpdated"
          | "AnnouncementReactionCreated"
          | "AnnouncementReactionDeleted"
          | "AnnouncementDeleted"
          | "AnnouncementCommentCreated"
          | "AnnouncementCommentUpdated"
          | "AnnouncementCommentDeleted"
          | "AnnouncementCommentReactionCreated"
          | "AnnouncementCommentReactionDeleted"
          | "ChannelMessageReactionCreated"
          | "ChannelMessageReactionDeleted"
          | "ChannelMessageReactionManyDeleted"
          | "ChannelMessagePinned"
          | "ChannelMessageUnpinned"
          | "ServerChannelCreated"
          | "ServerChannelUpdated"
          | "ServerChannelDeleted"
          | "ChannelRolePermissionCreated"
          | "ChannelRolePermissionUpdated"
          | "ChannelRolePermissionDeleted"
          | "ChannelUserPermissionCreated"
          | "ChannelUserPermissionUpdated"
          | "ChannelUserPermissionDeleted"
          | "ChannelArchived"
          | "ChannelRestored"
          | "ChannelCategoryUserPermissionCreated"
          | "ChannelCategoryUserPermissionUpdated"
          | "ChannelCategoryUserPermissionDeleted"
          | "ChannelCategoryRolePermissionCreated"
          | "ChannelCategoryRolePermissionUpdated"
          | "ChannelCategoryRolePermissionDeleted"
          | "ForumTopicCreated"
          | "ForumTopicUpdated"
          | "ForumTopicDeleted"
          | "ForumTopicPinned"
          | "ForumTopicUnpinned"
          | "ForumTopicReactionCreated"
          | "ForumTopicReactionDeleted"
          | "ForumTopicCommentCreated"
          | "ForumTopicCommentUpdated"
          | "ForumTopicCommentDeleted"
          | "ForumTopicCommentReactionCreated"
          | "ForumTopicCommentReactionDeleted"
          | "ForumTopicLocked"
          | "ForumTopicUnlocked"
          | "ServerMemberBanned"
          | "ServerMemberUnbanned"
          | "ServerMemberJoined"
          | "ServerMemberRemoved"
          | "ServerMemberUpdated"
          | "ServerRolesUpdated"
          | "ServerMemberSocialLinkCreated"
          | "ServerMemberSocialLinkUpdated"
          | "ServerMemberSocialLinkDeleted"
          | "RoleCreated"
          | "RoleUpdated"
          | "RoleDeleted"
          | "ServerWebhookCreated"
          | "ServerWebhookUpdated"
          | "DocCreated"
          | "DocUpdated"
          | "DocDeleted"
          | "DocReactionCreated"
          | "DocReactionDeleted"
          | "DocCommentCreated"
          | "DocCommentUpdated"
          | "DocCommentDeleted"
          | "DocCommentReactionCreated"
          | "DocCommentReactionDeleted"
          | "CalendarEventCreated"
          | "CalendarEventUpdated"
          | "CalendarEventDeleted"
          | "CalendarEventRsvpUpdated"
          | "CalendarEventRsvpDeleted"
          | "CalendarEventRsvpManyUpdated"
          | "CalendarEventReactionCreated"
          | "CalendarEventReactionDeleted"
          | "CalendarEventCommentCreated"
          | "CalendarEventCommentUpdated"
          | "CalendarEventCommentDeleted"
          | "CalendarEventCommentReactionCreated"
          | "CalendarEventCommentReactionDeleted"
          | "ListItemCreated"
          | "ListItemUpdated"
          | "ListItemDeleted"
          | "ListItemCompleted"
          | "ListItemUncompleted"
          | "CategoryCreated"
          | "CategoryUpdated"
          | "CategoryDeleted"
    • eventData: object

    Returns Promise<void>