Skip to content

Commit

Permalink
Improve type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Le committed Oct 17, 2020
1 parent bc86849 commit b08a07f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,22 @@ declare namespace internals {
/**
* Discord gateway url used to establish the connection.
*/
url: string;
readonly url: string;

/**
* Sharding information.
*/
shard: [number, number];
readonly shard: [number, number];

/**
* Resolved intents.
*/
intents: number | null;
readonly intents: number | null;

/**
* Session id.
*/
readonly id: string;

/**
* Listener invoked whenever the connection is closed, including closures before establishing reconnections.
Expand All @@ -107,11 +112,6 @@ declare namespace internals {
*/
onDispatch: DispatchListener;

/**
* Session id.
*/
id: string;

/**
* Connects to Discord Gateway API. Returns a promise that when resolved signifies a successful connection.
*/
Expand Down

0 comments on commit b08a07f

Please sign in to comment.