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

x/harmony/src/structures/channel.ts>GuildChannel

An easy to use Discord API Library for Deno.
Go to Latest
class GuildChannel
extends Channel
import { GuildChannel } from "https://deno.land/x/harmony@v2.6.0/src/structures/channel.ts";

Constructors

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

Properties

guild: Guild
guildID: string
name: string
nsfw: boolean
optional
parentID: string
permissionOverwrites: OverwritePayload[]
position: number

Methods

Add a Permission Overwrite

delete(): Promise<this>

Edit a Permission Overwrite

overwritesFor(target: Member | Role | string): Promise<Overwrite[]>

Get Permission Overties for a specific Member or Role

permissionsFor(target: Member | Role | string): Promise<Permissions>

Get Permissions for a Member in this Channel

removeOverwrite(target: Member | Role | string): Promise<GuildChannels>

Remove a Permission Overwrite

setName(name: string): Promise<GuildChannels>

Edit name of the channel

setNSFW(nsfw: boolean): Promise<GuildChannels>

Edit NSFW property of the channel

setOverwrites(overwrites: OverwriteAsArg[]): Promise<GuildChannels>

Set Permission Overwrites of the Channel

setPosition(position: number): Promise<GuildChannels>

Edit position of the channel