Interface

APIChannel

Full channel object from GET /channels/{id} or GET /guilds/{id}/channels.

Extends APIChannelPartial

Properties

bitrate?: number | null

Voice bitrate (kbps).

content_warning_level?: ContentWarningLevel | null

Content warning level.

content_warning_text?: string | null

Content warning custom text.

guild_id?: Snowflake | null

Guild ID (null 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.

name: string | null

Channel name.

nicks?: Record<string, string>

User-specific nicknames in group DMs (user_id -> nick).

nsfw?: boolean

Whether the channel is NSFW.

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.

topic?: string | null

Channel topic.

url?: string | null

External URL (link channels, type 998).

user_limit?: number | null

Voice user limit (0 = unlimited).