Gateway handler filters every ws events.

Hierarchy

  • GatewayHandler

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" | "ServerChannelCreated" | "ServerChannelUpdated" | "ServerChannelDeleted" | "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", ((data) => void)> = ...

Type declaration

    • (data): void
    • Parameters

      • data: object

      Returns 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" | "ServerChannelCreated" | "ServerChannelUpdated" | "ServerChannelDeleted" | "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"
    • eventData: object

    Returns Promise<void>