$editMessage
Edits a previously sent message from the bot with the supplied messageID. Supports Embeds.

FUNCTION USAGE

  • $editMessage[channelID;messageID;newMessage]

Properties:

channelID - Supply channelID if the message is in another channel. messageID - Supply a messageID from a previously sent message from the bot. newMessage - The newly edited message. Supports Embeds.

Example 1: Edit a message without embeds

1
bot.Command({
2
name: "edit",
3
code: `
4
$editMessage[$channelID;$message[1];The bot message will now be editing this in text form]
5
`
6
})
Copied!

Example 2: Edit a message with embeds

1
bot.Command({
2
name: "edit",
3
code: `
4
$editMessage[$channelID;$message[1];
5
{title:The bot message will now be editing this in embedded form}
6
{description:Newly edited message!}
7
{footer:supports embeds}]
8
`
9
})
Copied!
Last modified 5mo ago
Copy link