diff --git a/typings/index.d.ts b/typings/index.d.ts index 4910e3545..a2607c18a 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -523,7 +523,7 @@ declare module 'discord.js' { public readonly permissionsLocked: boolean; public readonly position: number; public rawPosition: number; - public clone(options?: GuildCreateChannelOptions): Promise; + public clone(options?: GuildChannelCloneOptions): Promise; public createInvite(options?: InviteOptions): Promise; public createOverwrite(userOrRole: RoleResolvable | UserResolvable, options: PermissionOverwriteOption, reason?: string): Promise; public edit(data: ChannelData, reason?: string): Promise; @@ -1777,15 +1777,20 @@ declare module 'discord.js' { type GuildChannelResolvable = Snowflake | GuildChannel; type GuildCreateChannelOptions = { - type?: 'text' | 'voice' | 'category' + permissionOverwrites?: OverwriteResolvable[] | Collection; + topic?: string; + type?: 'text' | 'voice' | 'category'; nsfw?: boolean; + parent?: ChannelResolvable; bitrate?: number; userLimit?: number; - parent?: ChannelResolvable; - permissionOverwrites?: OverwriteResolvable[] | Collection; rateLimitPerUser?: number; position?: number; - reason?: string + reason?: string; + }; + + type GuildChannelCloneOptions = GuildCreateChannelOptions & { + name?: string; }; type GuildEmojiCreateOptions = {