The goal here with this command is to allow to user to use /say <message> without the need to specify a channel. The bot is programmed to detect if a channel has been specified or not. If not, the message will be sent in the channel the command was used within.
The Issue
Since Discord is expecting a specific channel, a TextChannel specifically, when any other channel is given, the bot will throw an error. In addition to this, the bot will often throw an error even though a TextChannel is given.
This issue isn't necessarily that important, however it is something worth noting.
Current Goal
The goal here with this command is to allow to user to use
/say <message>
without the need to specify a channel. The bot is programmed to detect if a channel has been specified or not. If not, the message will be sent in the channel the command was used within.The Issue
Since Discord is expecting a specific channel, a
TextChannel
specifically, when any other channel is given, the bot will throw an error. In addition to this, the bot will often throw an error even though aTextChannel
is given.This issue isn't necessarily that important, however it is something worth noting.