sendMessage


General

sendMessage is a method letting you send a message or embed to the channel.


Usage

Webhook:sendMessage(<string> content, (array / Embed / Attachment) options)
Returns: <Message> message

You have to provide either content, attachment or embed. Blank message results in error.


Limitations

Upgrade Type Limit ( per 1s )
STANDARD (0) 30

 


Example

Webhook:sendMessage("Hello there!", Embed.new():addField("Test name", "Test value"))
Back to top