import { TextChannel } from "https://deno.land/x/harmony@v2.7.0/mod.ts";
Channel object for Text Channel type
Methods
addReaction(message: Message | string, emoji: Emoji | string): Promise<void>
Add a reaction to a Message in this Channel
editMessage(): Promise<Message>
message: Message | string,
text?: string,
option?: MessageOptions,
fetchMessages(options?: { limit?: number; around?: Message | string; before?: Message | string; after?: Message | string; }): Promise<Collection<string, Message>>
Fetch Messages of a Channel
getPinnedMessages(): Promise<Collection<string, Message>>
pinMessage(message: string | Message): Promise<void>
readFromData(data: TextChannelPayload): void
removeReaction(): Promise<void>
message: Message | string,
emoji: Emoji | string,
user?: User | Member | string,
Remove Reaction from a Message in this Channel
send(): Promise<Message>
content?: string | AllMessageOptions,
option?: AllMessageOptions,
reply?: Message,
triggerTyping(): Promise<TextChannel>
Trigger the typing indicator. NOT recommended to be used by bots unless you really want to.
unpinMessage(message: string | Message): Promise<void>