Skip to content

Commit

Permalink
Make Client options nullable in typings
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Nov 15, 2021
1 parent 117de32 commit a365531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { URL } from "url";
import { Socket as DgramSocket } from "dgram";
import * as WebSocket from "ws";

declare function Eris(token: string, options: Eris.ClientOptions): Eris.Client;
declare function Eris(token: string, options?: Eris.ClientOptions): Eris.Client;

declare namespace Eris {
export const Constants: Constants;
Expand Down Expand Up @@ -2071,7 +2071,7 @@ declare namespace Eris {
users: Collection<User>;
userSettings: UserSettings;
voiceConnections: VoiceConnectionManager;
constructor(token: string, options: ClientOptions);
constructor(token: string, options?: ClientOptions);
acceptInvite(inviteID: string): Promise<Invite<"withoutCount">>;
addGroupRecipient(groupID: string, userID: string): Promise<void>;
addGuildDiscoverySubcategory(guildID: string, categoryID: string, reason?: string): Promise<DiscoverySubcategoryResponse>;
Expand Down

0 comments on commit a365531

Please sign in to comment.