Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Commit

Permalink
Fix incorrect KlasaClientConfig typing (#90)
Browse files Browse the repository at this point in the history
ClientOptions passed to discord.js should be under the `"clientOptions"`
property of KlasaClientConfig, rather than intersected with
KlasaClientConfig itself. This is what the code seems to expect, so this
patch updates the typings accordingly.
  • Loading branch information
kenany authored and bdistin committed Nov 21, 2017
1 parent 9b9f5cb commit e0ff381
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ declare module 'klasa' {
}

export type KlasaClientConfig = {
clientOptions?: ClientOptions;
prefix?: string;
permissionLevels?: PermissionLevels;
clientBaseDir?: string;
Expand All @@ -970,7 +971,7 @@ declare module 'klasa' {
quotedStringSupport?: boolean;
readyMessage?: string|Function;
ownerID?: string;
} & ClientOptions;
};

export type KlasaConsoleConfig = {
stdout?: NodeJS.WritableStream;
Expand Down

0 comments on commit e0ff381

Please # to comment.