DB-Script
Discord Server
NPM
Search…
DB-Script
Getting Started
NPM Updates
Known Bugs
Functionalities
Bot Functions
Events
Functions
Action
$abbreviate
$addCmdReactions
$addCooldown
$addEmoji
$addMessageReactions
$addReactions
$api
$awaitCmdReactions
$awaitMessages
$awaitReactions
$ban
$blackList
$blackListRoles
$bold
$botLeave
$channelSendMessage
$clear
$cloneChannel
$codeblock
$codeblockMessage
$colorRole
$convertFromBytes
$convertToBytes
$createChannel
$createFile
$createRole
$createWebhook
$customCommand
$deleteChannels
$deletecommand
$deleteEmojis
$deleteIn
$deleteMessage
$deleteRole
$deleteSplitText
$deleteWebhook
$disableMentions
$divide
$djsEval
$dm
$editIn
$editMessage
$editSplitText
$emojiToID
$eval
$exec
$extractAmount
$filter
$giveRole
$globalBan
$haste
$italic
$kick
$let
$massRole
$messagePin
$messageUnpin
$modifyChannel
$modifyChannelPerms
$modifyEmoji
$modifyRole
$modifyRolePerms
$modifyWebhook
$multi
$parseFromMS
$parseToMS
$power
$reboot
$removeAllReactions
$removeReactions
$repeat
$replaceText
$replyIn
$revokeInvite
$round
$roundDown
$roundUp
$sendCrosspost
$sendCrosspostDM
$sendWebhook
$setBotAvatar
$setBotName
$setChannelName
$setChannelPosition
$setChannelTopic
$setEmojiName
$setGuildIcon
$setGuildName
$setNickname
$setRolePosition
$setSlowMode
$setStatus
$shutdown
$splitContent
$spoiler
$squareRoot
$strikethrough
$sub
$sum
$takeRole
$tempActivity
$truncate
$tts
$unban
$useChannel
$vcKick
$vcMove
Compacts
Conditions
Data
Embeds
Limiters
Music
Variables
Guides
Other
Contributors
Discord Server
FAQs
Staff
Powered By
GitBook
$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}]
`
})
Previous
$botLeave
Next
$clear
Last modified
1yr ago
Copy link
Outline
Properties: