Skip to content

$channelSendMessage

$channelSendMessage will send a message in a specific channel.

Usage

$channelSendMessage[channelID;content;returnID?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberWhere the messages shall be sent to.true
contentstringWhat the content of the message should be.true
returnID?booleanIf the message ID should be returned or not.
1. true
2. false (default)
false

Example(s)

This will send “Hello!” to the current channel:

1
client.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:

1
client.command({
2
name: "channelSendMessage",
3
code: `
4
$channelSendMessage[$channelID;{newEmbed:{title:Hello}{footer:Bye}};false]
5
`
6
});