chore(RoleManager): change parameter of create to be one unnamed object (#5026)

* chore(RoleManager): change parameter of create to be one unnamed object

* chore(RoleManager): update src/managers/RoleManager.js

* chore(RoleManager): update typings/index.d.ts

* chore(RoleManager): update src/managers/RoleManager.js

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
ManEatingTapir
2020-12-26 03:59:16 -06:00
committed by GitHub
parent 2aea7dd921
commit 6a77453532
2 changed files with 24 additions and 11 deletions

2
typings/index.d.ts vendored
View File

@@ -2021,7 +2021,7 @@ declare module 'discord.js' {
public guild: Guild;
public readonly premiumSubscriberRole: Role | null;
public botRoleFor(user: UserResolvable): Role | null;
public create(options?: { data?: RoleData; reason?: string }): Promise<Role>;
public create(options?: 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<Collection<Snowflake, Role>>;
}