$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.
bot.Command({
name: "sendmsg",
code: `
$channelSendMessage[$channelID;This message is sent to the current channel in plain text form]
`
})
Example 2: Sending a message to the chosen channel.
bot.Command({
name: "sendmsg",
code: `
$channelSendMessage[$findChannel[$message[]];This message is sent to <#$findChannel[$message[]]> in plain text form]
`
})
Example 3: Sending a message to the current channel using embeds! Please see the Embed Errors guide for more info!
bot.Command({
name: "sendmsg",
code: `
$channelSendMessage[$channelID;
{title:This message is sent to the current channel in embed form}
{description:This is just a test!}
{footer:Yup just a test lol}
{color:00FFFF}]
`
})
Last modified 1yr ago
Copy link