mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
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:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -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>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user