API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { type RESTPatchAPIChannelJSONBody } from "https://deno.land/x/discord_api_types@0.37.44/v8.ts";
Properties
The type of channel; only conversion between text
and news
is supported and only in guilds with the "NEWS" feature
Channel types: text, news
The position of the channel in the left-hand listing
Channel types: all
Whether the channel is nsfw
Channel types: text, news, store
Amount of seconds a user has to wait before sending another message (0-21600);
bots, as well as users with the permission MANAGE_MESSAGES
or MANAGE_CHANNELS
,
are unaffected
Channel types: text
The bitrate (in bits) of the voice channel; 8000 to 96000 (128000 for VIP servers)
Channel types: voice
The user limit of the voice channel; 0 refers to no limit, 1 to 99 refers to a user limit
Channel types: voice
Channel or category-specific permissions
Channel types: all
ID of the new parent category for a channel
Channel types: text, news, store, voice
Voice region id for the voice or stage channel, automatic when set to null
See https://discord.com/developers/docs/resources/voice#voice-region-object
The camera video quality mode of the voice channel
See https://discord.com/developers/docs/resources/channel#channel-object-video-quality-modes