hoshii / Exports / GatewayEventHandler

GatewayEventHandler

Represents a gateway event handler

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new GatewayEventHandler(client)

Create a new gateway event handler

Parameters

NameTypeDescription
clientClientThe client

Defined in

lib/gateway/GatewayEventHandler.ts:58open in new window

Properties

client

client: Client

The client

Defined in

lib/gateway/GatewayEventHandler.ts:52open in new window

Methods

___addServerChannel

Private ___addServerChannel(serverID, channelID, topicID?): Promise<void>

Parameters

NameType
serverIDstring
channelIDstring
topicID?number

Returns

Promise<void>

Defined in

lib/gateway/GatewayEventHandler.ts:62open in new window


__addServerChannel

Private __addServerChannel(serverID, channelID, eventID?): Promise<void>

Parameters

NameType
serverIDstring
channelIDstring
eventID?number

Returns

Promise<void>

Defined in

lib/gateway/GatewayEventHandler.ts:90open in new window


_addServerChannel

Private _addServerChannel(serverID, channelID): Promise<void>

Parameters

NameType
serverIDstring
channelIDstring

Returns

Promise<void>

Defined in

lib/gateway/GatewayEventHandler.ts:121open in new window


botServerMembershipCreate

botServerMembershipCreate(data): void

Handle a BotServerMembershipCreated gateway event

Parameters

NameTypeDescription
dataPayload_BotServerMembershipCreatedThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:141open in new window


botServerMembershipDelete

botServerMembershipDelete(data): void

Handle a BotServerMembershipDeleted gateway event

Parameters

NameTypeDescription
dataPayload_BotServerMembershipDeletedThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:154open in new window


calendarEventCreate

calendarEventCreate(data): void

Handle a BotServerMembershipUpdated gateway event

Parameters

NameTypeDescription
dataPayload_CalendarEventThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:167open in new window


calendarEventDelete

calendarEventDelete(data): void

Handle a CalendarEventDeleted gateway event

Parameters

NameTypeDescription
dataPayload_CalendarEventThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:187open in new window


calendarEventRSVPDelete

calendarEventRSVPDelete(data): void

Handle a CalendarEventRsvpDeleted gateway event

Parameters

NameTypeDescription
dataPayload_CalendarEventRSVPThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:208open in new window


calendarEventRSVPUpdate

calendarEventRSVPUpdate(data): void

Handle a CalendarEventRsvpUpdated gateway event

Parameters

NameTypeDescription
dataPayload_CalendarEventRSVPThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:231open in new window


calendarEventUpdate

calendarEventUpdate(data): void

Handle a CalendarEventUpdated gateway event

Parameters

NameTypeDescription
dataPayload_CalendarEventThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:254open in new window


channelMessageReactionCreate

channelMessageReactionCreate(data): void

Handle a ChannelMessageReactionCreated gateway event

Parameters

NameTypeDescription
dataPayload_ChannelMessageReactionThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:274open in new window


channelMessageReactionDelete

channelMessageReactionDelete(data): void

Handle a ChannelMessageReactionDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ChannelMessageReactionThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:288open in new window


chatMessageCreate

chatMessageCreate(data): void

Handle a ChatMessageCreated gateway event

Parameters

NameTypeDescription
dataPayload_ChatMessageThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:302open in new window


chatMessageDelete

chatMessageDelete(data): void

Handle a ChatMessageDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ChatMessageDeletedThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:318open in new window


chatMessageUpdate

chatMessageUpdate(data): void

Handle a ChatMessageUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ChatMessageThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:341open in new window


docCreate

docCreate(data): void

Handle a DocCreated gateway event

Parameters

NameTypeDescription
dataPayload_DocThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:357open in new window


docDelete

docDelete(data): void

Handle a DocDeleted gateway event

Parameters

NameTypeDescription
dataPayload_DocThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:373open in new window


docUpdate

docUpdate(data): void

Handle a DocUpdated gateway event

Parameters

NameTypeDescription
dataPayload_DocThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:391open in new window


forumTopicCommentCreate

forumTopicCommentCreate(data): void

Handle a ForumTopicCommentCreated gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicCommentThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:407open in new window


forumTopicCommentDelete

forumTopicCommentDelete(data): void

Handle a ForumTopicCommentDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicCommentThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:433open in new window


forumTopicCommentReactionCreate

forumTopicCommentReactionCreate(data): void

Handle a ForumTopicCommentReactionCreated gateway event1

Parameters

NameTypeDescription
dataPayload_ForumTopicCommentReactionThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:459open in new window


forumTopicCommentReactionDelete

forumTopicCommentReactionDelete(data): void

Handle a ForumTopicCommentReactionDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicCommentReactionThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:476open in new window


forumTopicCommentUpdate

forumTopicCommentUpdate(data): void

Handle a ForumTopicCommentUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicCommentThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:493open in new window


forumTopicCreate

forumTopicCreate(data): void

Handle a ForumTopicCreated gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:516open in new window


forumTopicDelete

forumTopicDelete(data): void

Handle a ForumTopicDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:534open in new window


forumTopicLock

forumTopicLock(data): void

Handle a ForumTopicLocked gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:552open in new window


forumTopicPin

forumTopicPin(data): void

Handle a ForumTopicPinned gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:569open in new window


forumTopicReactionCreate

forumTopicReactionCreate(data): void

Handle a ForumTopicReactionCreated gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicReactionThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:586open in new window


forumTopicReactionDelete

forumTopicReactionDelete(data): void

Handle a ForumTopicReactionDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicReactionThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:601open in new window


forumTopicUnlock

forumTopicUnlock(data): void

Handle a ForumTopicUnlocked gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:616open in new window


forumTopicUnpin

forumTopicUnpin(data): void

Handle a ForumTopicUnpinned gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:633open in new window


forumTopicUpdate

forumTopicUpdate(data): void

Handle a ForumTopicUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ForumTopicThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:650open in new window


listItemComplete

listItemComplete(data): void

Handle a ListItemCompleted gateway event

Parameters

NameTypeDescription
dataPayload_ListItemThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:667open in new window


listItemCreate

listItemCreate(data): void

Handle a ListItemCreated gateway event

Parameters

NameTypeDescription
dataPayload_ListItemThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:677open in new window


listItemDelete

listItemDelete(data): void

Handle a ListItemDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ListItemThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:687open in new window


listItemUncomplete

listItemUncomplete(data): void

Handle a ListItemUncompleted gateway event

Parameters

NameTypeDescription
dataPayload_ListItemThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:697open in new window


listItemUpdate

listItemUpdate(data): void

Handle a ListItemUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ListItemThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:707open in new window


serverChannelCreate

serverChannelCreate(data): void

Handle a ServerChannelCreated gateway event

Parameters

NameTypeDescription
dataPayload_ServerChannelThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:717open in new window


serverChannelDelete

serverChannelDelete(data): void

Handle a ServerChannelDeleted gateway event

Parameters

NameTypeDescription
dataPayload_ServerChannelThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:729open in new window


serverChannelUpdate

serverChannelUpdate(data): void

Handle a ServerChannelUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ServerChannelThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:741open in new window


serverMemberBan

serverMemberBan(data): void

Handle a ServerMemberBanned gateway event

Parameters

NameTypeDescription
dataPayload_ServerMemberBanThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:753open in new window


serverMemberJoin

serverMemberJoin(data): void

Handle a ServerMemberJoined gateway event

Parameters

NameTypeDescription
dataPayload_ServerMemberJoinedThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:767open in new window


serverMemberRemove

serverMemberRemove(data): void

Handle a ServerMemberRemoved gateway event

Parameters

NameTypeDescription
dataPayload_ServerMemberRemovedThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:781open in new window


serverMemberUnban

serverMemberUnban(data): void

Handle a ServerMemberUnbanned gateway event

Parameters

NameTypeDescription
dataPayload_ServerMemberBanThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:795open in new window


serverMemberUpdate

serverMemberUpdate(data): void

Handle a ServerMemberUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ServerMemberUpdatedThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:809open in new window


serverRolesUpdate

serverRolesUpdate(data): void

Handle a ServerRolesUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ServerRolesUpdatedThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:823open in new window


serverWebhookCreate

serverWebhookCreate(data): void

Handle a ServerWebhookCreated gateway event

Parameters

NameTypeDescription
dataPayload_ServerWebhookThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:837open in new window


serverWebhookUpdate

serverWebhookUpdate(data): void

Handle a ServerWebhookUpdated gateway event

Parameters

NameTypeDescription
dataPayload_ServerWebhookThe payload data

Returns

void

Defined in

lib/gateway/GatewayEventHandler.ts:846open in new window

Last Updated:
Contributors: Reinhardt