$channelUsed
Returns the ID of the channel used. If no channel ID is specified, it defaults to the current channel where the command was executed.
Usage: $channelUsed[channelID (optional)]
Parameters:
channelID (optional): The ID of the channel you want to be set as the channel used. If omitted, the function returns the ID of the channel where the command is run.
Example:
Here are a few examples showcasing the $channelUsed function:
In the first example, the bot set the specified channel ID 839090554205241394 as the channel used. In the second example, because no channel ID is provided, the bot returns the channel ID where the !!exec command was executed.
Related Functions
$channelIDreturns the channel ID where the command was executed. See the $channelID documentation for more information.