$editMessage
$editMessage
will edit a given message.
Usage
$editMessage[messageID;content;channelID?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
messageID | number | The message that should be edited. | true |
content | string | The content of the new message. | true |
channelID? | number | The 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
)
1client.command({2 name: "editMessage",3 code: `4 $editMessage[$get[id];Bye!]5 $wait[5s]6 $let[id;$sendMessage[Hello!;true]]7 `8});