mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
feat: backport (#7777)
This commit is contained in:
1
typings/enums.d.ts
vendored
1
typings/enums.d.ts
vendored
@@ -48,6 +48,7 @@ export const enum ChannelTypes {
|
||||
GUILD_PUBLIC_THREAD = 11,
|
||||
GUILD_PRIVATE_THREAD = 12,
|
||||
GUILD_STAGE_VOICE = 13,
|
||||
GUILD_DIRECTORY = 14,
|
||||
}
|
||||
|
||||
export const enum MessageTypes {
|
||||
|
||||
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@@ -523,6 +523,7 @@ export type CategoryChannelTypes = ExcludeEnum<
|
||||
| 'GUILD_NEWS_THREAD'
|
||||
| 'GUILD_PRIVATE_THREAD'
|
||||
| 'GUILD_CATEGORY'
|
||||
| 'GUILD_DIRECTORY'
|
||||
>;
|
||||
|
||||
export class CategoryChannel extends GuildChannel {
|
||||
@@ -557,6 +558,7 @@ export abstract class Channel extends Base {
|
||||
public isText(): this is TextBasedChannel;
|
||||
public isVoice(): this is BaseGuildVoiceChannel;
|
||||
public isThread(): this is ThreadChannel;
|
||||
public isDirectory(): this is DirectoryChannel;
|
||||
public toString(): ChannelMention;
|
||||
}
|
||||
|
||||
@@ -2237,6 +2239,8 @@ export class StageChannel extends BaseGuildVoiceChannel {
|
||||
public setTopic(topic: string): Promise<StageChannel>;
|
||||
}
|
||||
|
||||
export class DirectoryChannel extends Channel {}
|
||||
|
||||
export class StageInstance extends Base {
|
||||
private constructor(client: Client, data: RawStageInstanceData, channel: StageChannel);
|
||||
public id: Snowflake;
|
||||
|
||||
Reference in New Issue
Block a user