fix(RoleManager): fix ID return value, change return type to collection (#4935)

Co-authored-by: Ishmaam Khan <ishmaamk@gmail.com>
This commit is contained in:
Jan
2020-11-22 19:39:19 +01:00
committed by GitHub
parent 6f3076325e
commit 12a096b5f1
2 changed files with 9 additions and 7 deletions

2
typings/index.d.ts vendored
View File

@@ -2011,7 +2011,7 @@ declare module 'discord.js' {
public create(options?: { data?: RoleData; reason?: string }): Promise<Role>;
public fetch(id: Snowflake, cache?: boolean, force?: boolean): Promise<Role | null>;
public fetch(id?: Snowflake, cache?: boolean, force?: boolean): Promise<this>;
public fetch(id?: Snowflake, cache?: boolean, force?: boolean): Promise<Collection<Snowflake, Role>>;
}
export class UserManager extends BaseManager<Snowflake, User, UserResolvable> {