mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
feat(GuildChannel): allow to set all options when cloning (#2937)
This commit is contained in:
13
typings/index.d.ts
vendored
13
typings/index.d.ts
vendored
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user