Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denocordts/src/structures/channel/base.ts>BaseChannel

An Object Oriented Discord API wrapper for Deno.
Latest
class BaseChannel
implements APIPartialChannel
import { BaseChannel } from "https://deno.land/x/denocordts@1.2.0/src/structures/channel/base.ts";

Constructors

new
BaseChannel(data: APIPartialChannel, client: Base)

Methods

Minimum 2, Maximum 100

closeChannel(reason?: string)

For Community guilds, the Rules or Guidelines channel and the Community Updates channel cannot be deleted.

deleteMessage(unnamed 0: { reason?: string; messageId: Snowflake; })
isDm(): this is DmChannel
isText(): this is TextChannel
pinMessage(unnamed 0: { reason?: string; messageId: Snowflake; })
send(content: Omit<ReplyPayload, "message_reference">)
unPinMessage(unnamed 0: { reason?: string; messageId: Snowflake; })