sendMessage


General

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


Usage

Client:sendMessage(<string> channelId, <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) 100
PREMIUM (1) 500
ELITE (2) 1000

 


Example

Client:sendMessage("493672466544197633", "Hello there!", Embed.new():addField("Test name", "Test value"))

Back to top