mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
feat(RoleManager): added edit method, alias Role#edit (#5983)
Co-authored-by: monbrey <rsm999@uowmail.edu.au>
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -2633,6 +2633,7 @@ declare module 'discord.js' {
|
||||
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<Role | null>;
|
||||
public fetch(id?: Snowflake, options?: BaseFetchOptions): Promise<Collection<Snowflake, Role>>;
|
||||
public create(options?: CreateRoleOptions): Promise<Role>;
|
||||
public edit(role: RoleResolvable, options: RoleData, reason?: string): Promise<Role>;
|
||||
}
|
||||
|
||||
export class StageInstanceManager extends BaseManager<Snowflake, StageInstance, StageInstanceResolvable> {
|
||||
@@ -4212,7 +4213,7 @@ declare module 'discord.js' {
|
||||
position: number;
|
||||
}
|
||||
|
||||
type RoleResolvable = Role | string;
|
||||
type RoleResolvable = Role | Snowflake;
|
||||
|
||||
interface RoleTagData {
|
||||
botID?: Snowflake;
|
||||
|
||||
Reference in New Issue
Block a user