feat(Guild): setChannelPositions parent, lockPermissions keys (#5507)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
Souji
2021-04-30 21:48:51 +02:00
committed by GitHub
parent a5d41c9f6c
commit 4866e2672f
2 changed files with 18 additions and 2 deletions

6
typings/index.d.ts vendored
View File

@@ -220,6 +220,8 @@ declare module 'discord.js' {
public type: 'category';
}
type CategoryChannelResolvable = Snowflake | CategoryChannel;
export class Channel extends Base {
constructor(client: Client, data?: object);
public readonly createdAt: Date;
@@ -2358,7 +2360,9 @@ declare module 'discord.js' {
interface ChannelPosition {
channel: ChannelResolvable;
position: number;
lockPermissions?: boolean;
parent?: CategoryChannelResolvable;
position?: number;
}
type ChannelResolvable = Channel | Snowflake;