Class: Message

Message

Represents a discord-message

new Message (messageData, webhookurl)

Represents a discord-message

Name Type Description
messageData Object

Raw API-Data from Discord

webhookurl URL

Webhook-URL this message belongs to

Methods

delete ()Promise async

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

Allowed-Mentions-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