Actions › Messages
Edit Message
Edits an existing message by its id — independent of any interaction, works from any Event
- 1 credit
- Outputs: Success, Failure
- Undone after a test
Fields
What you set in Properties. The grey name is the one in the Blueprint's JSON.
| Field | What it does | |
|---|---|---|
Channel channelId | The channel this action applies to | required |
Message ID messageId | ID of the message to edit | required |
Content content | The message text | optional |
Allow @everyone and @here allowEveryone | Without this, @everyone and @here written in the text notify no one. A mention inside an inserted value never notifies. | optional |
Hide link previews suppressEmbeds | The message's links show no preview. Its own embeds stay. | optional |
What it passes on
On the Success output, for the nodes after it. Click a value in the editor to copy its reference.
| Data | Path | Type | |
|---|---|---|---|
| ID | message.id | Text | |
| Content | message.content | Text | can be empty |
| URL | message.url | Text | |
| Created At | message.createdAt | Date | can be empty |
| Edited At | message.editedAt | Date | can be empty |
| Author ▸ ID | message.author.id | Text | can be empty |
| Data | Path | Type | |
|---|---|---|---|
| Author ▸ Username | message.author.username | Text | can be empty |
| Author ▸ Display Name | message.author.displayName | Text | can be empty |
| Author ▸ Is a Bot | message.author.bot | Yes/No | can be empty |
| Channel ▸ ID | message.channel.id | Text | |
| Channel ▸ Name | message.channel.name | Text | can be empty |
| Mentions ▸ Members | message.mentions.members | List | |
| Mentions ▸ Roles | message.mentions.roles | List | |
| Mentions ▸ Mentions @everyone | message.mentions.everyone | Yes/No | |
| Attachments | message.attachments | List | |
| Replying to ▸ ID | message.replyTo.id | Text | can be empty |
| Thread ▸ ID | message.thread.id | Text | can be empty |
| Thread ▸ Name | message.thread.name | Text | can be empty |
| Pinned | message.pinned | Yes/No | can be empty |
When it fails
The Failure output receives success (false) and error: error.code, error.message in the server's language, and error.detail, what Discord said. The possible causes are in Errors.
Discord permissions
View Channels, Embed Links, Read Message History
What each one allows, and how to grant one later: Bot permissions.