$channelSendMessage
$channelSendMessage will send a message in a specific channel.
Usage
$channelSendMessage[channelID;content;returnID?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| channelID | number | Where the messages shall be sent to. | true |
| content | string | What the content of the message should be. | true |
| returnID? | boolean | If the message ID should be returned or not. 1. true 2. false (default) | false |
Example(s)
This will send “Hello!” to the current channel:
1client.command({2 name: "channelSendMessage",3 code: `4 $channelSendMessage[$channelID;Hello!;false]5 `6});Embeds
This will send an embed with description and footer to the current channel:
1client.command({2 name: "channelSendMessage",3 code: `4 $channelSendMessage[$channelID;{newEmbed:{title:Hello}{footer:Bye}};false]5 `6});