Added Documentation
This commit is contained in:
parent
17381406e0
commit
1681f7b390
@ -101,6 +101,13 @@ export class Client {
|
||||
return new Collection(this._accessToken, collectionName);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param event - The event to listen to
|
||||
* @param listener - The listener to call when the event is emitted
|
||||
* @returns The client instance
|
||||
*
|
||||
*/
|
||||
public on<K extends keyof ClientEvents>(event: K, listener: (...args: ClientEvents[K]) => void): this {
|
||||
this._subscriptions.subscribe(event, listener);
|
||||
return this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user