Skip to main content
Module

x/higa/mod.ts>ChannelManager

A package to interract with the Discord API coded by myself
Go to Latest
class ChannelManager
Re-export
import { ChannelManager } from "https://deno.land/x/higa@0.1.0-fix/mod.ts";

Constructors

new
ChannelManager(
token: string,
tokenType: string,
cache: CacheManager,
version: APIVersions,
)

Properties

readonly
version: APIVersions

API Version

Methods

addThreadMember(channelID: string, userID: string): Promise<void>

Add someone to a thread

bulkDeleteMessages(
channelID: string,
options: BulkDeleteMessagesOptions | number,
reason?: string,
): Promise<void>

Delete a group of messages

createChannelInvite(
channelID: string,
reason?: string,
): Promise<Invite>

Create an invitation

createMessage(channelID: string, options: CreateMessageOptions): Promise<Message>

Send a message in a Channel

createReaction(
channelID: string,
messageID: string,
emoji: string,
): Promise<void>

Create a reaction to a message

crosspostMessage(channelID: string, messageID: string): Promise<Message>

Crosspost a message during the channels who follow the channel

deleteAllReactions(channelID: string, messageID: string): Promise<void>

Delete all reactions from a message

deleteAllReactionsForEmoji(
channelID: string,
messageID: string,
emoji: string,
): Promise<void>

Delete all reactions for a specific emoji

deleteChannel(channelID: string, reason?: string): Promise<void>

Delete a channel

deleteChannelPermission(
channelID: string,
overwriteID: string,
reason?: string,
): Promise<void>

Delete a permission

deleteMessage(
channelID: string,
messageID: string,
reason?: string,
): Promise<void>

Delete a message

deleteOwnReaction(
channelID: string,
messageID: string,
emoji: string,
): Promise<void>

Delete your own reaction

deleteUserReaction(
channelID: string,
messageID: string,
userID: string,
emoji: string,
): Promise<void>

Delete a user's reaction from a message

editChannelPermissions(
channelID: string,
overwriteID: string,
reason?: string,
): Promise<void>

Edit a permission

editMessage(
channelID: string,
messageID: string,
): Promise<Message>

Edit a specific message in a channel

followNewsChannel(channelID: string, options: FollowNewsChannelOptions): Promise<FollowedChannel>

Follow a news channel

getChannel(channelID: string): Promise<Channel>

Get a channel

getChannelInvites(channelID: string): Promise<Invite[]>

Get all channel invitations

getChannelMessage(channelID: string, messageID: string): Promise<Message>

Get a single message from a channel

getChannelMessages(channelID: string, options?: GetMessagesOptions): Promise<Message[]>

Get messages from a Channel

getPinnedMessages(channelID: string): Promise<Message[]>

Get the list of pinned messages

getReactions(
channelID: string,
messageID: string,
emoji: string,
): Promise<User[]>

Get all users who reacted to a message with a certain emoji

getThreadMember(channelID: string, userID: string): Promise<ThreadMember>

Get the thread of a member

groupDMAddRecipient(
channelID: string,
userID: string,
): Promise<void>

Add someone to a DM group

groupDMRemoveRecipient(channelID: string, userID: string): Promise<void>

Remove someone to a DM group

joinThread(channelID: string): Promise<void>

Join a thread

leaveThread(channelID: string): Promise<void>

Leave a thread

List all public the archived private joined thread

List all public the archived private thread

List all public the archived public thread

listThreadMembers(channelID: string): Promise<ThreadMember[]>

List all the members of a thread

modifyChannel(
channelID: string,
reason?: string,
): Promise<Channel>

Modify a channel

pinMessage(
channelID: string,
messageID: string,
reason?: string,
): Promise<void>

Pin a message

removeThreadMember(channelID: string, userID: string): Promise<void>

Remove someone to a thread

startThreadinForumChannel(
channelID: string,
reason?: string,
): Promise<Channel>

Create a forum thread

startThreadWithMessages(
channelID: string,
messageID: string,
reason?: string,
): Promise<Channel>

Create a thread with a message

startThreadWithoutMessages(
channelID: string,
reason?: string,
): Promise<Channel>

Create a thread

triggerTypingIndicator(channelID: string): Promise<void>

Trigger typing indicator in a channel

unpinMessage(
channelID: string,
messageID: string,
reason?: string,
): Promise<void>

Unpin a message