$channelUsed
Return the ID of the channel used. If no channel ID is specified, set it to the current channel.
$channelUsed[channelID (optional)]
Usage: Related Functions
$channelID will return the channelID where the command was executed.