Latest
interface DiscordChannel
import { type DiscordChannel } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.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-4096 characters for GUILD_FORUM channels, 0-1024 characters for all others)

optional
bitrate: number

The bitrate (in bits) of the voice or stage channel

optional
user_limit: number

The user limit of the voice or stage 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 or stage 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.

available_tags: DiscordForumTag[]

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

applied_tags: string[]

The IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel

optional
default_reaction_emoji: DiscordDefaultReactionEmoji | null

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

default_thread_rate_limit_per_user: 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.

optional
default_sort_order: SortOrderTypes | null

the default sort order type used to order posts in GUILD_FORUM channels. Defaults to null, which indicates a preferred sort order hasn't been set by a channel admin

import DiscordChannel
import { DiscordChannel } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.ts";