Skip to main content
Module

x/discordeno/helpers/messages/mod.ts

Discord API library for Deno
Go to Latest
import * as discordeno from "https://deno.land/x/discordeno@13.0.0-rc45/helpers/messages/mod.ts";

Functions

Create a reaction for the message. Reaction takes the form of name:id for custom guild emoji, or Unicode characters. Requires READ_MESSAGE_HISTORY and ADD_REACTIONS

Adds multiple reactions to a message. If ordered is true(default is false), it will add the reactions one at a time in the order provided. Note: Reaction takes the form of name:id for custom guild emoji, or Unicode characters. Requires READ_MESSAGE_HISTORY and ADD_REACTIONS

Delete a message with the channel id and message id only.

Delete messages from the channel. 2-100. Requires the MANAGE_MESSAGES permission

Edit the message.

Fetch a single message from the server. Requires VIEW_CHANNEL and READ_MESSAGE_HISTORY

Fetches between 2-100 messages. Requires VIEW_CHANNEL and READ_MESSAGE_HISTORY

Get a list of users that reacted with this emoji.

Pin a message in a channel. Requires MANAGE_MESSAGES. Max pins allowed in a channel = 50.

Crosspost a message in a News Channel to following channels.

Removes all reactions for all emojis on this message.

Removes a reaction from the given user on this message, defaults to bot. Reaction takes the form of name:id for custom guild emoji, or Unicode characters.

Send a message to the channel. Requires SEND_MESSAGES permission.