kient / EventSubscription
Class: EventSubscription
src/structures/event-subscription.ts:10
Data structure of a subscription event
Extends
Extended by
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
_kient | readonly | Kient | - | Base ._kient | src/structures/base.ts:4 |
event | public | string | The subscriptions's event name | - | src/structures/event-subscription.ts:19 |
id | public | string | The subscriptions's ID | - | src/structures/event-subscription.ts:14 |
version | public | number | The subscriptions's event version number | - | src/structures/event-subscription.ts:24 |
Methods
toJSON()
ts
toJSON(): ExcludeFunctionsAndPrivate<EventSubscription>
src/structures/event-subscription.ts:39
Returns
ExcludeFunctionsAndPrivate
<EventSubscription
>
unsubscribe()
ts
unsubscribe(): void
src/structures/event-subscription.ts:35
Returns
void