get_channel
GET
/channels/{channel_id} 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: 0 &ChannelTypes | 2 & ChannelTypes | 4 & ChannelTypes | 5 & ChannelTypes | 13 & ChannelTypes | 14 & ChannelTypes | 15 & ChannelTypes ;
last_message_id?:SnowflakeType | null;
flags: number;
last_pin_timestamp?: string | null;
guild_id:SnowflakeType ;
name: string;
parent_id?:SnowflakeType | null;
rate_limit_per_user?: number;
bitrate?: number;
user_limit?: number;
rtc_region?: string | null;
video_quality_mode?:VideoQualityModes ;
permissions?: string | null;
topic?: string | null;
default_auto_archive_duration?:ThreadAutoArchiveDuration ;
default_thread_rate_limit_per_user?: number;
position: number;
permission_overwrites?:ChannelPermissionOverwriteResponse [];
nsfw?: boolean;
available_tags?:ForumTagResponse [];
default_reaction_emoji?:DefaultReactionEmojiResponse | null;
default_sort_order?:ThreadSortOrder | null;
default_forum_layout?:ForumLayout | null;
default_tag_setting?:ThreadSearchTagSetting | null;
hd_streaming_until?: string;
hd_streaming_buyer_id?:SnowflakeType ;
} | interface PrivateChannelResponse {
id:SnowflakeType ;
type: 1 &ChannelTypes ;
last_message_id?:SnowflakeType | null;
flags: number;
last_pin_timestamp?: string | null;
recipients:UserResponse [];
} | interface PrivateGroupChannelResponse {
id:SnowflakeType ;
type: 3 &ChannelTypes ;
last_message_id?:SnowflakeType | null;
flags: number;
last_pin_timestamp?: string | null;
recipients:UserResponse [];
name?: string | null;
icon?: string | null;
owner_id:SnowflakeType ;
managed?: boolean;
application_id?:SnowflakeType ;
} | interface ThreadResponse {
id:SnowflakeType ;
type: 10 &ChannelTypes | 11 & ChannelTypes | 12 & ChannelTypes ;
last_message_id?:SnowflakeType | null;
flags: number;
last_pin_timestamp?: string | null;
guild_id:SnowflakeType ;
name: string;
parent_id?:SnowflakeType | null;
rate_limit_per_user?: number;
bitrate?: number;
user_limit?: number;
rtc_region?: string | null;
video_quality_mode?:VideoQualityModes ;
permissions?: string | null;
owner_id:SnowflakeType ;
thread_metadata:ThreadMetadataResponse ;
message_count: number;
member_count: number;
total_message_sent: number;
applied_tags?:SnowflakeType [];
member?:ThreadMemberResponse ;
}
id:
type: 0 &
last_message_id?:
flags: number;
last_pin_timestamp?: string | null;
guild_id:
name: string;
parent_id?:
rate_limit_per_user?: number;
bitrate?: number;
user_limit?: number;
rtc_region?: string | null;
video_quality_mode?:
permissions?: string | null;
topic?: string | null;
default_auto_archive_duration?:
default_thread_rate_limit_per_user?: number;
position: number;
permission_overwrites?:
nsfw?: boolean;
available_tags?:
default_reaction_emoji?:
default_sort_order?:
default_forum_layout?:
default_tag_setting?:
hd_streaming_until?: string;
hd_streaming_buyer_id?:
} | interface PrivateChannelResponse {
id:
type: 1 &
last_message_id?:
flags: number;
last_pin_timestamp?: string | null;
recipients:
} | interface PrivateGroupChannelResponse {
id:
type: 3 &
last_message_id?:
flags: number;
last_pin_timestamp?: string | null;
recipients:
name?: string | null;
icon?: string | null;
owner_id:
managed?: boolean;
application_id?:
} | interface ThreadResponse {
id:
type: 10 &
last_message_id?:
flags: number;
last_pin_timestamp?: string | null;
guild_id:
name: string;
parent_id?:
rate_limit_per_user?: number;
bitrate?: number;
user_limit?: number;
rtc_region?: string | null;
video_quality_mode?:
permissions?: string | null;
owner_id:
thread_metadata:
message_count: number;
member_count: number;
total_message_sent: number;
applied_tags?:
member?:
}
Client Errors
429 application/json
Client ratelimited response
type RatelimitedResponse = never
4XX application/json
Client error response
type ErrorResponse = never