Preview environment

interface APIGuildChannel

extends

Omit<APIChannelBase<T>, 'name'>
export interface APIGuildChannel<T extends ChannelType> extends Omit<APIChannelBase<T>, 'name'>

Type Parameters

T extends ChannelType

optional
guild_id? : Snowflake

The id of the guild (may be missing for some channel objects received over gateway guild dispatches)

name : string

The name of the channel (1-100 characters)

optional
nsfw? : boolean

Whether the channel is nsfw

optional
parent_id? : Snowflake | null

ID of the parent category for a channel (each parent category can contain up to 50 channels)ORID of the parent channel for a thread

optional
permission_overwrites? : APIOverwrite[]

Explicit permission overwrites for members and rolesSee https://discord.com/developers/docs/resources/channel#overwrite-object

position : number

Sorting position of the channel