feat: add support for guild forums

waiting https://github.com/discordjs/discord.js/pull/7791
This commit is contained in:
March 7th 2022-06-15 11:34:03 +07:00
parent 520d8f9221
commit 47d865db09
2 changed files with 3 additions and 0 deletions

View File

@ -654,6 +654,7 @@ exports.ActivityTypes = createEnum(['PLAYING', 'STREAMING', 'LISTENING', 'WATCHI
* * `GUILD_PRIVATE_THREAD` - a guild text channel's private thread channel
* * `GUILD_STAGE_VOICE` - a guild stage voice channel
* * `GUILD_DIRECTORY` - the channel in a hub containing guilds
* * `GUILD_FORUM` - a guild channel that only contains threads
* * `UNKNOWN` - a generic channel of unknown type, could be Channel or GuildChannel
* @typedef {string} ChannelType
* @see {@link https://discord.com/developers/docs/resources/channel#channel-object-channel-types}
@ -673,6 +674,7 @@ exports.ChannelTypes = createEnum([
'GUILD_PRIVATE_THREAD',
'GUILD_STAGE_VOICE',
'GUILD_DIRECTORY',
'GUILD_FORUM',
]);
/**

1
typings/enums.d.ts vendored
View File

@ -101,6 +101,7 @@ export const enum ChannelTypes {
GUILD_PRIVATE_THREAD = 12,
GUILD_STAGE_VOICE = 13,
GUILD_DIRECTORY = 14,
GUILD_FORUM = 15,
}
export const enum MessageTypes {