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

x/natico/examples/deps.ts>DiscordenoChannel

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

Properties

The type of channel

optional
position: number

Sorting position of the channel

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
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: DiscordenoUser[]

The recipients of the DM

optional
icon: bigint

Icon hash

optional
lastPinTimestamp: number

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
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
archiveTimestamp: number

Timestamp when the thread's archive status was last changed, used for calculating 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
threadJoinTimestamp: number

The time the current user last joined the thread

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

botIsMember: boolean

Whether or not the bot is part of this channel thread.

optional
permissions: bigint

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

permissionOverwrites: bigint[]
id: bigint

The id of the channel

guildId: bigint

The id of the guild, 0n if it is a DM

optional
lastMessageId: bigint

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

optional
ownerId: bigint

id of the DM creator or thread

optional
applicationId: bigint

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

optional
parentId: bigint

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

optional
voiceStates: Collection<bigint, DiscordenoVoiceState>

The voice states that are in this channel assuming it is a voice channel.