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

x/harmony/src/structures/guildTextChannel.ts>GuildTextBasedChannel

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

Represents a Text Channel but in a Guild

Constructors

new
GuildTextBasedChannel(
client: Client,
data: GuildTextBasedChannelPayload,
guild: Guild,
)

Properties

readonly
mention: string
optional
topic: string

Methods

bulkDelete(messages: Array<Message | string> | number): Promise<GuildTextBasedChannel>

Bulk Delete Messages in a Guild Text Channel

createInvite(options?: CreateInviteOptions): Promise<Invite>

Create an Invite for this Channel

edit(options?: ModifyGuildTextBasedChannelOption): Promise<GuildTextBasedChannel>

Edit the Guild Text Channel

readFromData(data: GuildTextBasedChannelPayload): void
setCategory(category: CategoryChannel | string): Promise<GuildTextBasedChannel>

Edit category of the channel

setTopic(topic: string): Promise<GuildTextBasedChannel>

Edit topic of the channel

toString(): string