mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 00:37:22 +00:00
feat: Add IsSpoilerChannel flag to ChannelFlags enum (#5174)
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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}
|
||||
*/
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user