The Guilded WebSocket API events.

See

https://www.guilded.gg/docs/api/websockets

Hierarchy

  • WSEvents

Properties

BotServerMembershipCreated: {
    createdBy: string;
    server: APIServer;
}

Type declaration

  • createdBy: string

    The ID of the user that added the bot to the server.

  • server: APIServer

    The server the bot was added to.

BotServerMembershipDeleted: {
    deletedBy: string;
    server: APIServer;
}

Emitted when the bot is removed from a server.

See

https://www.guilded.gg/docs/api/websockets/BotServerMembershipDeleted

Type declaration

  • deletedBy: string

    The ID of the user that removed the bot from the server.

  • server: APIServer

    The server the bot was removed from.

CalendarEventCreated: {
    calendarEvent: APICalendarEvent;
    serverId: string;
}

Emitted when a calendar event is created.

See

https://www.guilded.gg/docs/api/websockets/CalendarEventCreated

Type declaration

  • calendarEvent: APICalendarEvent

    The created calendar event.

  • serverId: string

    The ID of the server the calendar event belongs to.

CalendarEventDeleted: {
    calendarEvent: APICalendarEvent;
    serverId: string;
}

Emitted when a calendar event is deleted.

See

https://www.guilded.gg/docs/api/websockets/CalendarEventDeleted

Type declaration

  • calendarEvent: APICalendarEvent

    The deleted calendar event.

  • serverId: string

    The ID of the server the calendar event belongs to.

CalendarEventRsvpDeleted: {
    calendarEventRsvp: APICalendarEventRsvp;
    serverId: string;
}

Emitted when a calendar event RSVP is deleted.

See

https://www.guilded.gg/docs/api/websockets/CalendarEventRsvpDeleted

Type declaration

  • calendarEventRsvp: APICalendarEventRsvp

    The deleted calendar event RSVP.

  • serverId: string

    The ID of the server the calendar event RSVP belongs to.

CalendarEventRsvpManyUpdated: {
    calendarEventRsvps: APICalendarEventRsvp[];
    serverId: string;
}

Emitted when calendar event RSVPs are edited.

See

https://www.guilded.gg/docs/api/websockets/CalendarEventRsvpManyUpdated

Type declaration

  • calendarEventRsvps: APICalendarEventRsvp[]

    The edited calendar event RSVPs.

  • serverId: string

    The ID of the server the calendar event RSVPs belong to.

CalendarEventRsvpUpdated: {
    calendarEventRsvp: APICalendarEventRsvp;
    serverId: string;
}

Emitted when a calendar event RSVP is edited.

See

https://www.guilded.gg/docs/api/websockets/CalendarEventRsvpUpdated

Type declaration

  • calendarEventRsvp: APICalendarEventRsvp

    The edited calendar event RSVP.

  • serverId: string

    The ID of the server the calendar event RSVP belongs to.

CalendarEventUpdated: {
    calendarEvent: APICalendarEvent;
    serverId: string;
}

Emitted when a calendar event is edited.

See

https://www.guilded.gg/docs/api/websockets/CalendarEventUpdated

Type declaration

  • calendarEvent: APICalendarEvent

    The edited calendar event.

  • serverId: string

    The ID of the server the calendar event belongs to.

ChannelMessageReactionCreated: {
    reaction: APIMessageReaction;
    serverId?: string;
}

Emitted when a message reaction is created.

See

https://www.guilded.gg/docs/api/websockets/ChannelMessageReactionCreated

Type declaration

  • reaction: APIMessageReaction

    The created reaction.

  • Optional serverId?: string

    The ID of the server the message belongs to.

ChannelMessageReactionDeleted: {
    reaction: APIMessageReaction;
    serverId?: string;
}

Emitted when a message reaction is deleted.

See

https://www.guilded.gg/docs/api/websockets/ChannelMessageReactionDeleted

Type declaration

  • reaction: APIMessageReaction

    The deleted reaction.

  • Optional serverId?: string

    The ID of the server the message belongs to.

ChatMessageCreated: {
    message: APIMessage;
    serverId: string;
}

Type declaration

  • message: APIMessage

    The message that was created.

  • serverId: string

    The ID of the server the message belongs to.

ChatMessageDeleted: {
    message: APIMessageSummary;
    serverId: string;
}

Type declaration

  • message: APIMessageSummary

    The message that was deleted.

  • serverId: string

    The ID of the server the message belongs to.

ChatMessageUpdated: {
    message: APIMessage;
    serverId: string;
}

Type declaration

  • message: APIMessage

    The message that was edited.

  • serverId: string

    The ID of the server the message belongs to.

DocCreated: {
    doc: APIDoc;
    serverId: string;
}

Type declaration

  • doc: APIDoc

    The created doc.

  • serverId: string

    The ID of the server the doc belongs to.

DocDeleted: {
    doc: APIDoc;
    serverId: string;
}

Type declaration

  • doc: APIDoc

    The deleted doc.

  • serverId: string

    The ID of the server the doc belongs to.

DocUpdated: {
    doc: APIDoc;
    serverId: string;
}

Type declaration

  • doc: APIDoc

    The edited doc.

  • serverId: string

    The ID of the server the doc belongs to.

ForumTopicCreated: {
    forumTopic: APIForumTopic;
    serverId: string;
}

Emitted when a forum topic is created.

See

https://www.guilded.gg/docs/api/websockets/ForumTopicCreated

Type declaration

  • forumTopic: APIForumTopic

    The created forum topic.

  • serverId: string

    The ID of the server the forum topic belongs to.

ForumTopicDeleted: {
    forumTopic: APIForumTopic;
    serverId: string;
}

Emitted when a forum topic is deleted.

See

https://www.guilded.gg/docs/api/websockets/ForumTopicDeleted

Type declaration

  • forumTopic: APIForumTopic

    The deleted forum topic.

  • serverId: string

    The ID of the server the forum topic belongs to.

ForumTopicLocked: {
    forumTopic: APIForumTopic;
    serverId: string;
}

Emitted when a forum topic is locked.

See

https://www.guilded.gg/docs/api/websockets/ForumTopicLocked

Type declaration

  • forumTopic: APIForumTopic

    The locked forum topic.

  • serverId: string

    The ID of the server the forum topic belongs to.

ForumTopicPinned: {
    forumTopic: APIForumTopic;
    serverId: string;
}

Emitted when a forum topic is pinned.

See

https://www.guilded.gg/docs/api/websockets/ForumTopicPinned

Type declaration

  • forumTopic: APIForumTopic

    The pinned forum topic.

  • serverId: string

    The ID of the server the forum topic belongs to.

ForumTopicUnlocked: {
    forumTopic: APIForumTopic;
    serverId: string;
}

Emitted when a forum topic is unlocked.

See

https://www.guilded.gg/docs/api/websockets/ForumTopicUnlocked

Type declaration

  • forumTopic: APIForumTopic

    The unlocked forum topic.

  • serverId: string

    The ID of the server the forum topic belongs to.

ForumTopicUnpinned: {
    forumTopic: APIForumTopic;
    serverId: string;
}

Emitted when a forum topic is unpinned.

See

https://www.guilded.gg/docs/api/websockets/ForumTopicUnpinned

Type declaration

  • forumTopic: APIForumTopic

    The unpinned forum topic.

  • serverId: string

    The ID of the server the forum topic belongs to.

ForumTopicUpdated: {
    forumTopic: APIForumTopic;
    serverId: string;
}

Emitted when a forum topic is edited.

See

https://www.guilded.gg/docs/api/websockets/ForumTopicUpdated

Type declaration

  • forumTopic: APIForumTopic

    The edited forum topic.

  • serverId: string

    The ID of the server the forum topic belongs to.

ListItemCompleted: {
    listItem: APIListItem;
    serverId: string;
}

Emitted when a list item is completed.

See

https://www.guilded.gg/docs/api/websockets/ListItemCompleted

Type declaration

  • listItem: APIListItem

    The completed list item.

  • serverId: string

    The ID of the server the list item belongs to.

ListItemCreated: {
    listItem: APIListItem;
    serverId: string;
}

Emitted when a list item is created.

See

https://www.guilded.gg/docs/api/websockets/ListItemCreated

Type declaration

  • listItem: APIListItem

    The created list item.

  • serverId: string

    The ID of the server the list item belongs to.

ListItemDeleted: {
    listItem: APIListItem;
    serverId: string;
}

Emitted when a list item is deleted.

See

https://www.guilded.gg/docs/api/websockets/ListItemDeleted

Type declaration

  • listItem: APIListItem

    The deleted list item.

  • serverId: string

    The ID of the server the list item belongs to.

ListItemUncompleted: {
    listItem: APIListItem;
    serverId: string;
}

Emitted when a list item is uncompleted.

See

https://www.guilded.gg/docs/api/websockets/ListItemUncompleted

Type declaration

  • listItem: APIListItem

    The uncompleted list item.

  • serverId: string

    The ID of the server thw list item belongs to.

ListItemUpdated: {
    listItem: APIListItem;
    serverId: string;
}

Emitted when a list item is edited.

See

https://www.guilded.gg/docs/api/websockets/ListItemUpdated

Type declaration

  • listItem: APIListItem

    The edited list item.

  • serverId: string

    The ID of the server the list item belongs to.

ServerChannelCreated: {
    channel: APIChannel;
    serverId: string;
}

Type declaration

  • channel: APIChannel

    The created channel.

  • serverId: string

    The ID of the server the channel belongs to.

ServerChannelDeleted: {
    channel: APIChannel;
    serverId: string;
}

Type declaration

  • channel: APIChannel

    The deleted channel.

  • serverId: string

    The ID of the server the channel belongs to.

ServerChannelUpdated: {
    channel: APIChannel;
    serverId: string;
}

Type declaration

  • channel: APIChannel

    The edited channel.

  • serverId: string

    The ID of the server the channel belongs to.

ServerMemberBanned: {
    serverId: string;
    serverMemberBan: APIServerBan;
}

Emitted when a member is banned from a server.

See

https://www.guilded.gg/docs/api/websockets/ServerMemberBanned

Type declaration

  • serverId: string

    The ID of the server the ban belongs to.

  • serverMemberBan: APIServerBan

    The created server ban.

ServerMemberJoined: {
    member: APIServerMember;
    serverId: string;
}

Emitted whan a member joins a server.

See

https://www.guilded.gg/docs/api/websockets/ServerMemberJoined

Type declaration

  • member: APIServerMember

    The member that joined the server.

  • serverId: string

    The ID of the server the member belongs to.

ServerMemberRemoved: {
    isBan?: boolean;
    isKick?: boolean;
    serverId: string;
    userId: string;
}

Emitted when a member leaves a server.

See

https://www.guilded.gg/docs/api/websockets/ServerMemberRemoved

Type declaration

  • Optional isBan?: boolean

    Whether the member was banned from the server.

  • Optional isKick?: boolean

    Whether the member was kicked from the server.

  • serverId: string

    The ID of the server the member belongs to.

  • userId: string

    The ID of the member that left the server.

ServerMemberUnbanned: {
    serverId: string;
    serverMemberBan: APIServerBan;
}

Emitted when a member is unbanned from a server.

See

https://www.guilded.gg/docs/api/websockets/ServerMemberUnbanned

Type declaration

  • serverId: string

    The ID of the server the ban belongs to.

  • serverMemberBan: APIServerBan

    The deleted server ban.

ServerMemberUpdated: {
    serverId: string;
    userInfo: {
        id: string;
        nickname?: string;
    };
}

Emitted when a server member is edited.

See

https://www.guilded.gg/docs/api/websockets/ServerMemberUpdated

Type declaration

  • serverId: string

    The ID of the server the member belongs to.

  • userInfo: {
        id: string;
        nickname?: string;
    }

    The updated information about the server member.

    • id: string

      The ID of the member that was edited.

    • Optional nickname?: string

      The nickname of the member.

ServerRolesUpdated: {
    memberRoleIds: {
        roleIds: number[];
        userId: string;
    }[];
    serverId: string;
}

Emitted when roles in a server are edited.

See

https://www.guilded.gg/docs/api/websockets/ServerRolesUpdated

Type declaration

  • memberRoleIds: {
        roleIds: number[];
        userId: string;
    }[]

    The updated roles.

  • serverId: string

    The ID of the server the roles belong to.

ServerWebhookCreated: {
    serverId: string;
    webhook: APIWebhook;
}

Type declaration

  • serverId: string

    The ID of the server the webhook belongs to.

  • webhook: APIWebhook

    The created webhook.

ServerWebhookUpdated: {
    serverId: string;
    webhook: APIWebhook;
}

Type declaration

  • serverId: string

    The ID of the server the webhook belongs to.

  • webhook: APIWebhook

    The edited webhook.