Skip to content

Commit e096cca

Browse files
committed
adjust discordjs client dummy type to fully allow the typings from v13
TLDR; if we define missing keys as undefined in the type TS forces us to still set the key, which is not the behaviour we want, as the client just doesn't have the key set at all
1 parent a80f26d commit e096cca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ type DiscordJSClientFallback = {
5353
guilds: {
5454
cache: Collection<
5555
string,
56-
(
57-
| { shardID: number; shardId: undefined }
58-
| { shardId: number; shardID: undefined }
59-
) & { [k: string]: any }
56+
({ shardID: number } | { shardId: number }) & { [k: string]: any }
6057
>;
6158
};
6259
ws: {

0 commit comments

Comments
 (0)