Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typings(GuildCreateChannelOptions): Added missing properties #3052

Merged
merged 2 commits into from Feb 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 10 additions & 5 deletions typings/index.d.ts
Expand Up @@ -523,7 +523,7 @@ declare module 'discord.js' {
public readonly permissionsLocked: boolean;
public readonly position: number;
public rawPosition: number;
public clone(options?: GuildCreateChannelOptions): Promise<GuildChannel>;
public clone(options?: GuildChannelCloneOptions): 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>;
Expand Down Expand Up @@ -1777,15 +1777,20 @@ declare module 'discord.js' {
type GuildChannelResolvable = Snowflake | GuildChannel;

type GuildCreateChannelOptions = {
type?: 'text' | 'voice' | 'category'
permissionOverwrites?: OverwriteResolvable[] | Collection<Snowflake, OverwriteResolvable>;
topic?: string;
type?: 'text' | 'voice' | 'category';
nsfw?: boolean;
parent?: ChannelResolvable;
bitrate?: number;
userLimit?: number;
parent?: ChannelResolvable;
permissionOverwrites?: OverwriteResolvable[] | Collection<Snowflake, OverwriteResolvable>;
rateLimitPerUser?: number;
position?: number;
reason?: string
reason?: string;
};

type GuildChannelCloneOptions = GuildCreateChannelOptions & {
name?: string;
};

type GuildEmojiCreateOptions = {
Expand Down