Skip to main content
Module

x/discordeno/mod.ts>DiscordChannel

Discord API library for Deno
Extremely Popular
Go to Latest
interface DiscordChannel
Re-export
import { type DiscordChannel } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.ts";

Properties

The type of channel

optional
flags: ChannelFlags

The flags of the 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
bitrate: number

The bitrate (in bits) of the voice channel

optional
user_limit: number

The user limit of the voice channel

optional
rate_limit_per_user: 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
rtc_region: string | null

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

optional
video_quality_mode: VideoQualityModes

The camera video quality mode of the voice channel, 1 when not present

optional
message_count: number

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

optional
member_count: number

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

optional
default_auto_archive_duration: 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

id: string

The id of the channel

optional
guild_id: string

The id of the guild

optional
permission_overwrites: DiscordOverwrite[]

Explicit permission overwrites for members and roles

optional
nsfw: boolean

Whether the channel is nsfw

optional
last_message_id: string | null

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

optional
owner_id: string

Id of the creator of the thread

optional
application_id: string

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

optional
parent_id: 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
last_pin_timestamp: 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
thread_metadata: DiscordThreadMetadata

Thread-specific fields not needed by other channels

optional
member: DiscordThreadMember

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

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

optional
newly_created: boolean

When a thread is created this will be true on that channel payload for the thread.