Type alias WebsocketManagerEvents

WebsocketManagerEvents: {
    debug(data) => unknown;
    error(reason, err, data?) => unknown;
    exit(info) => unknown;
    gatewayEvent(event, data) => unknown;
    raw(data) => unknown;
    ready(user) => unknown;
    reconnect() => unknown;
    unknown(reason, data) => unknown;
}

Type declaration

  • debug:function
  • error:function
    • Parameters

      • reason: string
      • err: null | Error
      • Optional data: unknown

      Returns unknown

  • exit:function
  • gatewayEvent:function
    • Parameters

      • event: "CalendarEventCreated" | "CalendarEventUpdated" | "CalendarEventDeleted" | "CalendarEventRsvpUpdated" | "CalendarEventRsvpManyUpdated" | "CalendarEventRsvpDeleted" | "ChatMessageCreated" | "ChatMessageUpdated" | "ChatMessageDeleted" | "ServerMemberJoined" | "ServerMemberRemoved" | "ServerMemberUpdated" | "ServerMemberBanned" | "ServerMemberUnbanned" | "ServerMemberSocialLinkCreated" | "ServerMemberSocialLinkUpdated" | "ServerMemberSocialLinkDeleted" | "BotServerMembershipCreated" | "BotServerMembershipDeleted" | "ServerRolesUpdated" | "ServerWebhookCreated" | "ServerWebhookUpdated" | "ListItemCompleted" | "ListItemUncompleted" | "ListItemCreated" | "ListItemUpdated" | "ListItemDeleted" | "ServerChannelCreated" | "ServerChannelUpdated" | "ServerChannelDeleted" | "DocCreated" | "DocUpdated" | "DocDeleted" | "ChannelMessageReactionCreated" | "ChannelMessageReactionDeleted" | "ForumTopicCreated" | "ForumTopicUpdated" | "ForumTopicDeleted" | "ForumTopicPinned" | "ForumTopicUnpinned" | "ForumTopicLocked" | "ForumTopicUnlocked"
      • data: SkeletonWSPayload

      Returns unknown

  • raw:function
  • ready:function
    • Parameters

      • user: {
            avatar?: string;
            banner?: string;
            createdAt: string;
            id: string;
            name: string;
            status?: components["schemas"]["UserStatus"];
            type?: "bot" | "user";
        } & {
            botId: string;
            createdBy: string;
        }

      Returns unknown

  • reconnect:function
  • unknown:function

Generated using TypeDoc