$channelSendMessage
Send a message to the provided channel ID. Supports embeds and executeables.

FUNCTION USAGE

    $channelSendMessage[channelID;message]

Properties:

channelID - channelID of the channel you want the message to go. message - the message you want to send to the given channel.
Example 1: Sending a message in plain text to the current channel.
1
bot.Command({
2
name: "sendmsg",
3
code: `
4
$channelSendMessage[$channelID;This message is sent to the current channel in plain text form]
5
`
6
})
Copied!
Example 2: Sending a message to the chosen channel.
1
bot.Command({
2
name: "sendmsg",
3
code: `
4
$channelSendMessage[$findChannel[$message[]];This message is sent to <#$findChannel[$message[]]> in plain text form]
5
`
6
})
Copied!
Example 3: Sending a message to the current channel using embeds! Please see the Embed Errors guide for more info!
1
bot.Command({
2
name: "sendmsg",
3
code: `
4
$channelSendMessage[$channelID;
5
{title:This message is sent to the current channel in embed form}
6
{description:This is just a test!}
7
{footer:Yup just a test lol}
8
{color:00FFFF}]
9
`
10
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: