Interface
APIChannel
Full channel object from GET /channels/{id} or GET /guilds/{id}/channels.
Extends Omit
Properties
| Name | Type | Description |
|---|---|---|
| applied_tags? | Snowflake[] | Tag IDs applied to a forum or media post (max 5). |
| available_tags? | APIForumTag[] | Tags that can be applied to posts in a forum or media channel. |
| bitrate? | number | null | Voice bitrate (kbps). |
| content_warning_level? | ContentWarningLevel | Content warning level. |
| content_warning_text? | string | null | Content warning custom text. |
| default_auto_archive_duration? | number | null | Default auto-archive duration in minutes for new threads. |
| default_forum_layout? | ForumLayout | Default layout for forum posts. |
| default_reaction_emoji? | APIDefaultReactionEmoji | null | Default reaction for new posts. |
| default_sort_order? | ForumSortOrder | null | Default sort order for posts. |
| default_tag_setting? | ForumTagSetting | Default tag search setting for a forum or media channel. |
| default_thread_rate_limit_per_user? | number | Slowmode in seconds copied onto new threads. |
| flags? | number | Channel flags bitfield. |
| guild_id? | Snowflake | Guild ID (absent for DMs). |
| icon? | string | null | Channel icon hash. |
| last_message_id? | Snowflake | null | Last message ID in this channel. |
| last_pin_timestamp? | string | null | ISO-8601 timestamp of last pin. |
| member? | APIThreadMember | Thread membership for the current user. |
| member_count? | number | Approximate number of thread members, capped at 50. |
| member_ids_preview? | Snowflake[] | Recently joined member IDs of a forum or media post, newest first. |
| message_count? | number | Messages in the thread, excluding the starter and deleted messages. |
| name? | string | Channel name. |
| nicks? | Record<string, string> | User-specific nicknames in group DMs (user_id -> nick). |
| nsfw? | boolean | Whether the channel is NSFW. |
| nsfw_override? | boolean | null | Per-channel NSFW override (null inherits). |
| owner_id? | Snowflake | null | Owner ID (group DMs). |
| parent_id? | Snowflake | null | Parent category ID. |
| permission_overwrites? | APIChannelOverwrite[] | Permission overwrites. |
| position? | number | Sort position in the channel list. |
| rate_limit_per_user? | number | Slowmode delay in seconds. |
| recipients? | APIUser[] | DM/group DM recipients. |
| rtc_region? | string | null | Voice RTC region ID. |
| thread_metadata? | APIThreadMetadata | Thread-specific fields. Present on thread channels. |
| topic? | string | null | Channel topic. |
| total_message_sent? | number | Messages ever sent in the thread. This count is never decremented. |
| url? | string | null | External URL (link channels, type 998). |
| user_limit? | number | null | Voice user limit (0 = unlimited). |
| voice_connection_limit? | number | null | Max active voice connections per user in this channel. |