Represents a discord-message
Name | Type | Description |
---|---|---|
messageData |
Object |
Raw API-Data from Discord |
webhookurl |
URL |
Webhook-URL this message belongs to |
Methods
-
Deletes this message
Returns:
Type Description Promise -
edit (content, embeds, allowedMentions, components)Promise.<Message> async
-
Edits this message
Name Type Description content
String Content of this message
embeds
Array.<Object> Array of Embed-Objects
allowedMentions
Object components
Array Message-Component-Object. ⚠ This will only work, if your webhook is owned by an application.
Returns:
Type Description Promise.<Message> New message