Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface ModifyChannel
implements WithReason
import { type ModifyChannel } from "https://deno.land/x/discordeno@17.0.0/helpers/channels/mod.ts";

Properties

optional
name: string

1-100 character channel name

optional
type: ChannelTypes

The type of channel; only conversion between text and news is supported and only in guilds with the "NEWS" feature

optional
position: number | null

The position of the channel in the left-hand listing

optional
topic: string | null

0-1024 character channel topic

optional
nsfw: boolean | null

Whether the channel is nsfw

optional
rateLimitPerUser: number | null

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_channel, are unaffected

optional
bitrate: number | null

The bitrate (in bits) of the voice channel; 8000 to 96000 (128000 for VIP servers)

optional
userLimit: number | null

The user limit of the voice channel; 0 refers to no limit, 1 to 99 refers to a user limit

optional
permissionOverwrites: OverwriteReadable[] | null

Channel or category-specific permissions

optional
parentId: BigString | null

Id of the new parent category for a channel

optional
rtcRegion: string | null

Voice region id for the voice channel, automatic when set to null

optional
videoQualityMode: VideoQualityModes

The camera video quality mode of the voice channel

optional
archived: boolean

Whether the thread is archived

optional
autoArchiveDuration:
| 60
| 1440
| 4320
| 10080

Duration in minutes to automatically archive the thread after recent activity

optional
locked: boolean

When a thread is locked, only users with MANAGE_THREADS can unarchive it

optional
invitable: boolean

whether non-moderators can add other non-moderators to a thread; only available on private threads

optional
availableTags: { id: string; name: string; moderated: boolean; emojiId: string; emojiName: string; }[]

The set of tags that can be used in a GUILD_FORUM channel

optional
defaultReactionEmoji: { emojiId: string; emojiName: string | null; }

the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel

optional
defaultThreadRateLimitPerUser: number

the initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update.