Interface
APIChannel
Full channel object from GET /channels/{id} or GET /guilds/{id}/channels.
Extends APIChannelPartial
Properties
bitrate
?: number | nullVoice bitrate (kbps).
content_warning_level
?: ContentWarningLevel | nullContent warning level.
content_warning_text
?: string | nullContent warning custom text.
guild_id
?: Snowflake | nullGuild ID (null for DMs).
icon
?: string | nullChannel icon hash.
last_message_id
?: Snowflake | nullLast message ID in this channel.
last_pin_timestamp
?: string | nullISO-8601 timestamp of last pin.
name
: string | nullChannel name.
nicks
?: Record<string, string>User-specific nicknames in group DMs (user_id -> nick).
nsfw
?: booleanWhether the channel is NSFW.
owner_id
?: Snowflake | nullOwner ID (group DMs).
parent_id
: Snowflake | nullParent category ID.
permission_overwrites
?: APIChannelOverwrite[]Permission overwrites.
position
?: numberSort position in the channel list.
rate_limit_per_user
?: numberSlowmode delay in seconds.
recipients
?: APIUser[]DM/group DM recipients.
rtc_region
?: string | nullVoice RTC region ID.
topic
?: string | nullChannel topic.
url
?: string | nullExternal URL (link channels, type 998).
user_limit
?: number | nullVoice user limit (0 = unlimited).