Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#createReaction

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.createReaction
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Create a reaction for the message. This endpoint requires the 'READ_MESSAGE_HISTORY' permission to be present on the current user. Additionally, if nobody else has reacted to the message using this emoji, this endpoint requires the 'ADD_REACTIONS' permission to be present on the current user. Returns a 204 empty response on success. The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji.

Parameters

channelId: string
messageId: string
emoji: string

Returns

Promise<void>