Skip to main content
Module

x/aether/mod.ts>TextChannel

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

Constructors

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

Properties

lastMessageID: string

ID of the last message sent in the text channel

rateLimitPerUser: number

Rate limit per user of the text channel

topic: string

Topic of the text channel

Methods

deleteMessage(id: string): Promise<void>

Method to delete a specific message in the channel

deleteMessages(messages: string[]): Promise<void>

Method to delete/purge multiple messages in the channel

getMessage(id: string): Promise<Message>

A method to get a specific message from the channel

send(content: MessageContent | string | MessageEmbed): Promise<Message>

A method to send a message to the text channel