Functionalities
Other
$mentionedChannels
Returns the ID of a mentioned channel, similar to the $mentioned function but pertains to channel mentions.

FUNCTION USAGE

  • $mentionedChannels[argNumber]
  • $mentionedChannels[argNumber;yes]

Properties:

argNumber - Represents the mentioned argument position. yes - If the 2nd field is defined as yes and no mentions are found in the command message, the function returns the ID of the channel where the command was executed.
Example:
1
bot.Command({
2
name: "test",
3
code: `
4
This is the id of the channel you mentioned!: $mentionedChannels[1]
5
6
$onlyIf[$mentionedChannels[1]!=;You must mention a valid channel!]
7
`
8
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: