Skip to content

$editMessage

$editMessage will edit a given message.

Usage

$editMessage[messageID;content;channelID?]

Parameters

FieldTypeDescriptionRequired
messageIDnumberThe message that should be edited.true
contentstringThe content of the new message.true
channelID?numberThe channel ID of where the message is located in.false

You can only edit messages that were sent by the bot itself.

Example(s)

This will edit the sent message after five seconds: ( works the same way as $editIn )

1
client.command({
2
name: "editMessage",
3
code: `
4
$editMessage[$get[id];Bye!]
5
$wait[5s]
6
$let[id;$sendMessage[Hello!;true]]
7
`
8
});