Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aether/mod.ts>GuildChannel

A Deno library to interface with the Discord API
Latest
class GuildChannel
extends Channel
import { GuildChannel } from "https://deno.land/x/aether@v0.0.3/mod.ts";

Constructors

new
GuildChannel(
data: any,
guild: Guild,
client: Client,
)

Properties

guild: Guild

Guild of the guild-based channel

name: string

Name of the guild-based channel

nsfw: boolean

Whether the guild-based channel has NSFW toggled

optional
parentID: string

Parent ID of a non-category-based guild-based channel

permissionOverwrites: PermissionOverwite[]

Permission overwrites for a guild-based channel (member or role)

position: number

Numeric position of the guild-based channel

type: number

Numeric type of the guild-based channel

Methods

delete(): Promise<GuildChannel>

Method to delete the channel

Method to edit the channel