class GuildChannel
extends Channel
import { GuildChannel } from "https://deno.land/x/harmony@v2.6.0/src/structures/channel.ts";
Constructors
Properties
guild: Guild
permissionOverwrites: OverwritePayload[]
Methods
addOverwrite(overwrite: OverwriteAsArg): Promise<GuildChannels>
Add a Permission Overwrite
delete(): Promise<this>
edit(options?: ModifyChannelOption): Promise<GuildChannels>
editOverwrite(overwrite: OverwriteAsArg, unnamed 1: EditOverwriteOptions): Promise<GuildChannels>
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
readFromData(data: GuildChannelPayloads): void
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