Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#editMessage

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

Edit a previously sent message. The fields content, embed, allowed_mentions and flags can be edited by the original message author. Other users can only edit flags and only if they have the MANAGE_MESSAGES permission in the corresponding channel. When specifying flags, ensure to include all previously set flags/bits in addition to ones that you are modifying. Only flags documented in the table below may be modified by users (unsupported flag changes are currently ignored without error). Returns a message object. Fires a Message Update Gateway event.

Parameters

channelId: string
messageId: string