mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
typings(Guild): add typings for setRolePositions
See:
PR: #3317
Commit: 8bc8ffe168
This commit is contained in:
@@ -994,7 +994,7 @@ class Guild extends Base {
|
||||
/**
|
||||
* The data needed for updating a guild role's position
|
||||
* @typedef {Object} GuildRolePosition
|
||||
* @property {GuildRoleResolveable} role The ID of the role
|
||||
* @property {RoleResolveable} role The ID of the role
|
||||
* @property {number} position The position to update
|
||||
*/
|
||||
|
||||
|
||||
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -472,6 +472,7 @@ declare module 'discord.js' {
|
||||
public setName(name: string, reason?: string): Promise<Guild>;
|
||||
public setOwner(owner: GuildMemberResolvable, reason?: string): Promise<Guild>;
|
||||
public setRegion(region: string, reason?: string): Promise<Guild>;
|
||||
public setRolePositions(rolePositions: RolePosition[]): Promise<Guild>;
|
||||
public setSplash(splash: Base64Resolvable | null, reason?: string): Promise<Guild>;
|
||||
public setSystemChannel(systemChannel: ChannelResolvable | null, reason?: string): Promise<Guild>;
|
||||
public setVerificationLevel(verificationLevel: number, reason?: string): Promise<Guild>;
|
||||
@@ -2176,6 +2177,11 @@ declare module 'discord.js' {
|
||||
mentionable?: boolean;
|
||||
}
|
||||
|
||||
interface RolePosition {
|
||||
role: RoleResolvable;
|
||||
position: number;
|
||||
}
|
||||
|
||||
type RoleResolvable = Role | string;
|
||||
|
||||
type ShardingManagerMode = 'process' | 'worker';
|
||||
|
||||
Reference in New Issue
Block a user