Search + K

Command Palette

Search for a command to run...

Sign In

get_channel

GET /channels/{channel_id}
Copy endpoint
https://discord.com/api/v10

Parameters

path Path Parameters

Name Type
channel_id required
type SnowflakeType = string

Responses

200 application/json

200 response for get_channel

interface GuildChannelResponse {
id: SnowflakeType
type SnowflakeType = string
;
type: 0 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 2 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 4 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 5 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 13 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 14 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 15 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
;
last_message_id?: SnowflakeType
type SnowflakeType = string
| null
;
flags: number;
last_pin_timestamp?: string | null;
guild_id: SnowflakeType
type SnowflakeType = string
;
name: string;
parent_id?: SnowflakeType
type SnowflakeType = string
| null
;
rate_limit_per_user?: number;
bitrate?: number;
user_limit?: number;
rtc_region?: string | null;
video_quality_mode?: VideoQualityModes
type VideoQualityModes = 1 | 2
;
permissions?: string | null;
topic?: string | null;
default_auto_archive_duration?: ThreadAutoArchiveDuration
type ThreadAutoArchiveDuration = 60 | 1440 | 4320 | 10080
;
default_thread_rate_limit_per_user?: number;
position: number;
permission_overwrites?: ChannelPermissionOverwriteResponse
interface ChannelPermissionOverwriteResponse {
id: SnowflakeType;
type: ChannelPermissionOverwrites;
allow: string;
deny: string;
}
[]
;
nsfw?: boolean;
available_tags?: ForumTagResponse
interface ForumTagResponse {
id: SnowflakeType;
name: string;
moderated: boolean;
emoji_id?: SnowflakeType | null;
emoji_name?: string | null;
}
[]
;
default_reaction_emoji?: DefaultReactionEmojiResponse
interface DefaultReactionEmojiResponse {
emoji_id?: SnowflakeType | null;
emoji_name?: string | null;
}
| null
;
default_sort_order?: ThreadSortOrder
type ThreadSortOrder = 0 | 1
| null
;
default_forum_layout?: ForumLayout
type ForumLayout = 0 | 1 | 2
| null
;
default_tag_setting?: ThreadSearchTagSetting
type ThreadSearchTagSetting = "match_all" | "match_some"
| null
;
hd_streaming_until?: string;
hd_streaming_buyer_id?: SnowflakeType
type SnowflakeType = string
;
}
| interface PrivateChannelResponse {
id: SnowflakeType
type SnowflakeType = string
;
type: 1 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
;
last_message_id?: SnowflakeType
type SnowflakeType = string
| null
;
flags: number;
last_pin_timestamp?: string | null;
recipients: UserResponse
interface UserResponse {
id: SnowflakeType;
username: string;
avatar?: string | null;
discriminator: string;
public_flags: number;
flags: Int53Type;
bot?: boolean;
system?: boolean;
banner?: string | null;
accent_color?: number | null;
global_name?: string | null;
avatar_decoration_data?: UserAvatarDecorationResponse | null;
collectibles?: UserCollectiblesResponse | null;
primary_guild?: UserPrimaryGuildResponse | null;
}
[]
;
}
| interface PrivateGroupChannelResponse {
id: SnowflakeType
type SnowflakeType = string
;
type: 3 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
;
last_message_id?: SnowflakeType
type SnowflakeType = string
| null
;
flags: number;
last_pin_timestamp?: string | null;
recipients: UserResponse
interface UserResponse {
id: SnowflakeType;
username: string;
avatar?: string | null;
discriminator: string;
public_flags: number;
flags: Int53Type;
bot?: boolean;
system?: boolean;
banner?: string | null;
accent_color?: number | null;
global_name?: string | null;
avatar_decoration_data?: UserAvatarDecorationResponse | null;
collectibles?: UserCollectiblesResponse | null;
primary_guild?: UserPrimaryGuildResponse | null;
}
[]
;
name?: string | null;
icon?: string | null;
owner_id: SnowflakeType
type SnowflakeType = string
;
managed?: boolean;
application_id?: SnowflakeType
type SnowflakeType = string
;
}
| interface ThreadResponse {
id: SnowflakeType
type SnowflakeType = string
;
type: 10 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 11 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
| 12 & ChannelTypes
type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15
;
last_message_id?: SnowflakeType
type SnowflakeType = string
| null
;
flags: number;
last_pin_timestamp?: string | null;
guild_id: SnowflakeType
type SnowflakeType = string
;
name: string;
parent_id?: SnowflakeType
type SnowflakeType = string
| null
;
rate_limit_per_user?: number;
bitrate?: number;
user_limit?: number;
rtc_region?: string | null;
video_quality_mode?: VideoQualityModes
type VideoQualityModes = 1 | 2
;
permissions?: string | null;
owner_id: SnowflakeType
type SnowflakeType = string
;
thread_metadata: ThreadMetadataResponse
interface ThreadMetadataResponse {
archived: boolean;
archive_timestamp?: string | null;
auto_archive_duration: ThreadAutoArchiveDuration;
locked: boolean;
create_timestamp?: string;
invitable?: boolean;
}
;
message_count: number;
member_count: number;
total_message_sent: number;
applied_tags?: SnowflakeType
type SnowflakeType = string
[]
;
member?: ThreadMemberResponse
interface ThreadMemberResponse {
id: SnowflakeType;
user_id: SnowflakeType;
join_timestamp: string;
flags: number;
member?: GuildMemberResponse;
}
;
}

Client Errors

429 application/json

Client ratelimited response

type RatelimitedResponse = never
4XX application/json

Client error response

type ErrorResponse = never