feat(GuildChannel): allow to set all options when cloning (#2937)

This commit is contained in:
SpaceEEC
2018-11-17 15:43:04 +01:00
committed by GitHub
parent 81ff5075e4
commit d92ee2ff99
2 changed files with 14 additions and 23 deletions

13
typings/index.d.ts vendored
View File

@@ -523,7 +523,7 @@ declare module 'discord.js' {
public readonly permissionsLocked: boolean;
public readonly position: number;
public rawPosition: number;
public clone(options?: GuildChannelCloneOptions): Promise<GuildChannel>;
public clone(options?: GuildCreateChannelOptions): Promise<GuildChannel>;
public createInvite(options?: InviteOptions): Promise<Invite>;
public createOverwrite(userOrRole: RoleResolvable | UserResolvable, options: PermissionOverwriteOption, reason?: string): Promise<GuildChannel>;
public edit(data: ChannelData, reason?: string): Promise<GuildChannel>;
@@ -1772,17 +1772,6 @@ declare module 'discord.js' {
MESSAGE?: string;
};
type GuildChannelCloneOptions = {
bitrate?: number;
name?: string;
nsfw?: boolean;
parent?: ChannelResolvable;
reason?: string;
userLimit?: number;
withPermissions?: boolean;
withTopic?: boolean;
};
type GuildChannelResolvable = Snowflake | GuildChannel;
type GuildCreateChannelOptions = {