Skip to content

Commit

Permalink
typings: switch overloads of RoleStore#fetch (discordjs#3397)
Browse files Browse the repository at this point in the history
because compu told me to
  • Loading branch information
Fyko authored and samsamson33 committed Feb 27, 2020
1 parent 983f8d1 commit a9b0293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -1797,8 +1797,8 @@ declare module 'discord.js' {
public readonly highest: Role;

public create(options?: { data?: RoleData, reason?: string }): Promise<Role>;
public fetch(id?: Snowflake, cache?: boolean): Promise<this>;
public fetch(id: Snowflake, cache?: boolean): Promise<Role | null>;
public fetch(id?: Snowflake, cache?: boolean): Promise<this>;
}

export class UserStore extends DataStore<Snowflake, User, typeof User, UserResolvable> {
Expand Down

0 comments on commit a9b0293

Please sign in to comment.