mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: add missing, fix existing (#10842)
* docs: add missing, fix existing * refactor: new stuff * fix: requested changes * fix: use `@link` for `@mixes` Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> * chore: disable bad eslint rule --------- Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -211,11 +211,11 @@ export class Client extends AsyncEventEmitter<MappedEvents> {
|
||||
|
||||
public readonly api: API;
|
||||
|
||||
public constructor({ rest, gateway }: ClientOptions) {
|
||||
public constructor(options: ClientOptions) {
|
||||
super();
|
||||
this.rest = rest;
|
||||
this.gateway = gateway;
|
||||
this.api = new API(rest);
|
||||
this.rest = options.rest;
|
||||
this.gateway = options.gateway;
|
||||
this.api = new API(this.rest);
|
||||
|
||||
this.gateway.on(WebSocketShardEvents.Dispatch, (dispatch, shardId) => {
|
||||
this.emit(dispatch.t, this.toEventProps(dispatch.d, shardId));
|
||||
|
||||
Reference in New Issue
Block a user