Adding appropriate error handling for the /settitle and /setgame commands. Handles trying to set the title/game in unauthorized channels, missing scope, rate limits, and title being too long by providing Failed to set title - Title is too long. error message.
Also removed the status variable declaration from the setTitle function as it was not used.
Adding appropriate error handling for the
/settitle
and/setgame
commands. Handles trying to set the title/game in unauthorized channels, missing scope, rate limits, and title being too long by providingFailed to set title - Title is too long.
error message.Also removed the
status
variable declaration from thesetTitle
function as it was not used.Fixes #5332