mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
typings(Guild): add typings for setRolePositions
See:
PR: #3317
Commit: 8bc8ffe168
This commit is contained in:
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