Skip to content

Commit

Permalink
fix(typings): update GuildMemberRoleManager typings to match implemen…
Browse files Browse the repository at this point in the history
…tation (#5497)
  • Loading branch information
thesilican committed Apr 14, 2021
1 parent 565d7b3 commit 900e576
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions typings/index.d.ts
Expand Up @@ -2021,8 +2021,9 @@ declare module 'discord.js' {
public unban(user: UserResolvable, reason?: string): Promise<User>;
}

export class GuildMemberRoleManager extends OverridableManager<Snowflake, Role, RoleResolvable> {
export class GuildMemberRoleManager {
constructor(member: GuildMember);
public readonly cache: Collection<Snowflake, Role>;
public readonly hoist: Role | null;
public readonly color: Role | null;
public readonly highest: Role;
Expand Down Expand Up @@ -2057,12 +2058,6 @@ declare module 'discord.js' {
public delete(message: MessageResolvable): Promise<void>;
}

// Hacky workaround because changing the signature of an overridden method errors
class OverridableManager<V, K, R = any> extends BaseManager<V, K, R> {
public add(data: any, cache: any): any;
public set(key: any): any;
}

export class PresenceManager extends BaseManager<Snowflake, Presence, PresenceResolvable> {
constructor(client: Client, iterable?: Iterable<any>);
}
Expand Down

0 comments on commit 900e576

Please sign in to comment.