$mentionedChannels
$mentionedChannels
will return the ID of a channel retrieved from the mention.
Usage
$mentionedChannels[index;returnSelf?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
index | number | The index of the argument. | true |
returnSelf? | boolean | Return the ID of the channel where the command was executed in when channel was not found. | false |
Example(s)
This will return the ID of the first mention, if you attempt to mention any channel in this command, or else it will return the channel ID of the channel where the command was executed in:
1client.command({2 name: "mentionedChannels",3 code: `4 $mentionedChannels[1;true]5 `6});