$useChannel
This function allows you to specify a different channel for subsequent actions within your command. It essentially redirects where the following functions will execute.
Usage: $useChannel[channelID]
channelID: The ID of the channel you want to use. Make sure the bot has access to this channel.
Example:
This example demonstrates how to send "Bye!" to a specific channel ID (802179504147136552) while sending "Hi!" to the channel the command was triggered in.
Explanation:
$sendMessage[Hi!]: Sends the message "Hi!" to the channel where the command was executed.$useChannel[802179504147136552]: Sets the channel to the one with the ID 802179504147136552.$sendMessage[Bye!]: Sends the message "Bye!" to the channel specified by$useChannel(channel ID 802179504147136552).