APIGuildChannel

Signature

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

Properties

name: string;

The name of the channel (1-100 characters)

guild_id?: Snowflake;

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

permission_overwrites?: APIOverwrite[];

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

position: number;

Sorting position of the channel

parent_id?: Snowflake | null;

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

nsfw?: boolean;

Whether the channel is nsfw