Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/natico/examples/deps.ts>Channel

A powerful and customizable framework for Discordeno
Latest
interface Channel
Re-export
import { type Channel } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.ts";

Properties

id: string

The id of the channel

The type of channel

optional
guildId: string

The id of the guild

optional
position: number

Sorting position of the channel

optional
permissionOverwrites: Overwrite[]

Explicit permission overwrites for members and roles

optional
name: string

The name of the channel (1-100 characters)

optional
topic: string | null

The channel topic (0-1024 characters)

optional
nsfw: boolean

Whether the channel is nsfw

optional
lastMessageId: string | null

The id of the last message sent in this channel (may not point to an existing or valid message)

optional
bitrate: number

The bitrate (in bits) of the voice channel

optional
userLimit: number

The user limit of the voice channel

optional
rateLimitPerUser: number

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
recipients: User[]

The recipients of the DM

optional
icon: string | null

Icon hash

optional
ownerId: string

Id of the creator of the group DM or thread

optional
applicationId: string

Application id of the group DM creator if it is bot-created

optional
parentId: string | null

For guild channels: Id of the parent category for a channel (each parent category can contain up to 50 channels), for threads: id of the text channel this thread was created

optional
lastPinTimestamp: string | null

When the last pinned message was pinned. This may be null in events such as GUILD_CREATE when a message is not pinned.

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, 1 when not present

optional
messageCount: number

An approximate count of messages in a thread, stops counting at 50

optional
memberCount: number

An approximate count of users in a thread, stops counting at 50

optional
threadMetadata: ThreadMetadata

Thread-specifig fields not needed by other channels

optional
member: ThreadMember

Thread member object for the current user, if they have joined the thread, only included on certain API endpoints

optional
defaultAutoArchiveDuration: number

Default duration for newly created threads, in minutes, to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080

optional
permissions: string

computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a application command interaction