Skip to content

$messagePublish

$messagePublish will publish a message in an announcement channel.

Usage

$messagePublish[messageID;channelID?]

Parameters

FieldTypeDescriptionRequired
messageIDnumberThe ID of the message which should be published.true
channelID?numberThe ID of the channel where the given message is located in.false

Example(s)

This will publish a message ( will only work in announcement channels ):

1
client.command({
2
name: "messagePublish",
3
code: `
4
$messagePublish[$get[msgID];$channelID]
5
$let[msgID;$sendMessage[Hello!;true]]
6
`
7
});