mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(typings): update GuildMemberRoleManager typings to match implementation (#5497)
This commit is contained in:
9
typings/index.d.ts
vendored
9
typings/index.d.ts
vendored
@@ -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;
|
||||
@@ -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>);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user