diff --git a/typings/index.d.ts b/typings/index.d.ts index deb59c9af..058180c90 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -51,7 +51,7 @@ declare module 'discord.js' { public readonly createdAt: Date; public readonly createdTimestamp: number; public id: Snowflake; - public type: 'dm' | 'group' | 'text' | 'voice' | 'category'; + public type: 'dm' | 'group' | 'text' | 'voice' | 'category' | 'news' | 'store'; public delete(): Promise; } @@ -526,7 +526,7 @@ declare module 'discord.js' { public allowDMs(allow: boolean): Promise; public ban(user: UserResolvable, options?: BanOptions | number | string): Promise; public createChannel(name: string, options?: ChannelData): Promise; - public createChannel(name: string, type?: 'category' | 'text' | 'voice', permissionOverwrites?: PermissionOverwrites[] | ChannelCreationOverwrites[], reason?: string): Promise; + public createChannel(name: string, type?: 'category' | 'text' | 'voice' | 'news' | 'store', permissionOverwrites?: PermissionOverwrites[] | ChannelCreationOverwrites[], reason?: string): Promise; public createEmoji(attachment: BufferResolvable | Base64Resolvable, name: string, roles?: Collection | Role[], reason?: string): Promise; public createRole(data?: RoleData, reason?: string): Promise; public delete(): Promise; @@ -892,6 +892,11 @@ declare module 'discord.js' { public remove(user?: UserResolvable): Promise; } + export class NewsChannel extends TextChannel { + constructor(guild: Guild, data: object); + public rateLimitPerUser: 0; + } + export class OAuth2Application { constructor(client: Client, data: object); public bot: object; @@ -1188,6 +1193,11 @@ declare module 'discord.js' { public static generate(timestamp?: number | Date): Snowflake; } + export class StoreChannel extends GuildChannel { + constructor(guild: Guild, data: object); + public nsfw: boolean; + } + export class StreamDispatcher extends VolumeInterface { constructor(player: AudioPlayer, stream: NodeJS.ReadableStream, streamOptions: StreamOptions); public destroyed: boolean; @@ -1630,7 +1640,7 @@ declare module 'discord.js' { }; type ChannelData = { - type?: 'category' | 'text' | 'voice'; + type?: 'category' | 'text' | 'voice' | 'news' | 'store'; name?: string; position?: number; topic?: string;