Skip to main content
Module

x/coward/src/structures/TextChannel.ts

πŸ” Coward is a Deno module for easy interaction with the Discord API.
Latest
File
import { Channel } from "./Channel.ts";import { Options } from "../Client.ts";
/** * Class representing any text-based channel * @extends Channel */export class TextChannel extends Channel { createMessage(content: string | Options.createMessage) { return this.client.createMessage(this.id, content) }
modifyMessage(messageID: string, content: string | Options.modifyMessage) { return this.client.modifyMessage(this.id, messageID, content) }
deleteMessage(messageID: string) { return this.client.deleteMessage(this.id, messageID) }}