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
- debug(data): unknown
-
Returns unknown
-
error:function
- error(reason, err, data?): unknown
-
Parameters
-
reason: string
-
err: null | Error
-
Optional
data: unknown
Returns unknown
-
exit:function
- exit(info): unknown
-
Returns unknown
-
gatewayEvent:function
- gatewayEvent(event, data): unknown
-
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"
-
Returns unknown
-
raw:function
- raw(data): unknown
-
Returns unknown
-
ready:function
- ready(user): unknown
-
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
- reconnect(): unknown
-
Returns unknown
-
unknown:function
- unknown(reason, data): unknown
-
Parameters
-
reason: string
-
data: unknown
Returns unknown