Skip to main content

Interface: ClientEvents

types/events.ClientEvents

Properties

disconnected

disconnected: () => void

Type declaration

▸ (): void

Fired on disconnect.

Returns

void

Defined in

src/types/events.ts:58


message

message: (message: Message) => void

Type declaration

▸ (message): void

Fired when a message is received.

Parameters
NameType
messageMessage
Returns

void

Defined in

src/types/events.ts:61


nick-change

nick-change: (nickChangeInfo: NickChangeInfo) => void

Type declaration

▸ (nickChangeInfo): void

Fired when someone changes their nickname.

Parameters
NameType
nickChangeInfoNickChangeInfo
Returns

void

Defined in

src/types/events.ts:71


sys-message

sys-message: (sysMessage: SysMessage<"info" | "error" | "success">) => void

Type declaration

▸ (sysMessage): void

Fired when any system message is received

Parameters
NameType
sysMessageSysMessage<"info" | "error" | "success">
Returns

void

Defined in

src/types/events.ts:74


sys-message-error

sys-message-error: (sysMessage: SysMessage<"error">) => void

Type declaration

▸ (sysMessage): void

Fired when a system message is received of type error

Parameters
NameType
sysMessageSysMessage<"error">
Returns

void

Defined in

src/types/events.ts:80


sys-message-info

sys-message-info: (sysMessage: SysMessage<"info">) => void

Type declaration

▸ (sysMessage): void

Fired when a system message is received of type info

Parameters
NameType
sysMessageSysMessage<"info">
Returns

void

Defined in

src/types/events.ts:77


sys-message-success

sys-message-success: (sysMessage: SysMessage<"success">) => void

Type declaration

▸ (sysMessage): void

Fired when a system message is received of type success

Parameters
NameType
sysMessageSysMessage<"success">
Returns

void

Defined in

src/types/events.ts:83


tag-add

tag-add: (tagAddInfo: TagAddInfo) => void

Type declaration

▸ (tagAddInfo): void

Fired when a user gets a new tag.

Parameters
NameType
tagAddInfoTagAddInfo
Returns

void

Defined in

src/types/events.ts:92


user-join

user-join: (user: User) => void

Type declaration

▸ (user): void

Fired when a user joins.

Parameters
NameType
userUser
Returns

void

Defined in

src/types/events.ts:86


user-leave

user-leave: (user: User) => void

Type declaration

▸ (user): void

Fired when a user leaves.

Parameters
NameType
userUser
Returns

void

Defined in

src/types/events.ts:89


werror

werror: (reason: string) => void

Type declaration

▸ (reason): void

Fired when a "GUI error" occurs. This is can be any error which doesn't disconnect you as a result.

Parameters
NameType
reasonstring
Returns

void

Defined in

src/types/events.ts:68