mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix: implement valueOf on pseudomanagers (#4595)
This commit is contained in:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -1927,6 +1927,7 @@ declare module 'discord.js' {
|
||||
public remove(
|
||||
roleOrRoles: RoleResolvable | readonly RoleResolvable[] | Collection<Snowflake, Role>,
|
||||
): Promise<GuildEmoji>;
|
||||
public valueOf(): Collection<Snowflake, Role>;
|
||||
}
|
||||
|
||||
export class GuildManager extends BaseManager<Snowflake, Guild, GuildResolvable> {
|
||||
@@ -1965,6 +1966,7 @@ declare module 'discord.js' {
|
||||
roleOrRoles: RoleResolvable | readonly RoleResolvable[] | Collection<Snowflake, Role>,
|
||||
reason?: string,
|
||||
): Promise<GuildMember>;
|
||||
public valueOf(): Collection<Snowflake, Role>;
|
||||
}
|
||||
|
||||
export class MessageManager extends BaseManager<Snowflake, Message, MessageResolvable> {
|
||||
|
||||
Reference in New Issue
Block a user