diff --git a/packages/types/src/discord/channel.ts b/packages/types/src/discord/channel.ts index 8da3566da..c9e1243f8 100644 --- a/packages/types/src/discord/channel.ts +++ b/packages/types/src/discord/channel.ts @@ -181,6 +181,14 @@ export enum ChannelFlags { RequireTag = 1 << 4, /** When set hides the embedded media download options. Available only for media channels. */ HideMediaDownloadOptions = 1 << 15, + /** + * This channel is a Spoiler Channel i.e. users must opt in to view its contents. + * + * @remarks + * Can be set on all textual guild channels and voice channels (not `GUILD_STAGE`). + * Can only be set if channel's `nsfw` is false + */ + IsSpoilerChannel = 1 << 21, } /** https://docs.discord.com/developers/resources/channel#channel-object-sort-order-types */ diff --git a/packages/types/src/discordeno/channel.ts b/packages/types/src/discordeno/channel.ts index 8691ad790..3e8d93092 100644 --- a/packages/types/src/discordeno/channel.ts +++ b/packages/types/src/discordeno/channel.ts @@ -178,11 +178,7 @@ export interface ModifyChannel { * Channel flags combined as a bitfield. * * @remarks - * - `REQUIRE_TAG` is supported only by {@link ChannelTypes.GuildForum} and {@link ChannelTypes.GuildMedia} channels. - * - `HIDE_MEDIA_DOWNLOAD_OPTIONS` is supported only by {@link ChannelTypes.GuildMedia} channels - * - `PINNED` can only be set for threads in {@link ChannelTypes.GuildForum} and {@link ChannelTypes.GuildMedia} channels - * - * This is only valid when editing a guild channel of type {@link ChannelTypes.GuildForum} or {@link ChannelTypes.GuildMedia}, or a thread. + * This is only valid when editing a guild channel of type {@link ChannelTypes.GuildText}, {@link ChannelTypes.GuildVoice}, {@link ChannelTypes.GuildAnnouncement}, {@link ChannelTypes.GuildMedia}, {@link ChannelTypes.GuildForum} or a thread. * * @see {@link ChannelFlags} */ diff --git a/packages/types/src/discordeno/guild.ts b/packages/types/src/discordeno/guild.ts index 8b8d439f4..7672f9c84 100644 --- a/packages/types/src/discordeno/guild.ts +++ b/packages/types/src/discordeno/guild.ts @@ -100,6 +100,15 @@ export interface CreateGuildChannel { defaultForumLayout?: ForumLayout; /** The initial ratelimit to set on newly created threads in a channel. */ defaultThreadRateLimitPerUser?: number; + /** + * Channel flags combined as a bitfield. + * + * @remarks + * This is only valid when editing a guild channel of type {@link ChannelTypes.GuildText}, {@link ChannelTypes.GuildVoice}, {@link ChannelTypes.GuildAnnouncement}, {@link ChannelTypes.GuildMedia}, {@link ChannelTypes.GuildForum}. + * + * @see {@link ChannelFlags} + */ + flags?: number; } /** https://docs.discord.com/developers/resources/guild#modify-guild-channel-positions-json-params */ @@ -112,6 +121,12 @@ export interface ModifyGuildChannelPositions { lockPermissions?: boolean | null; /** The new parent ID for the channel that is moved */ parentId?: BigString | null; + /** + * Channel flags combined as a bitfield. + * + * @see {@link ChannelFlags} + */ + flags?: number | null; } /** https://docs.discord.com/developers/resources/guild#list-guild-members-query-string-params */