Chatterino / chatterino2

Chat client for https://twitch.tv
MIT License
1.98k stars 444 forks source link

No error handling on `/settitle` #5332

Closed brian6932 closed 1 month ago

brian6932 commented 3 months ago

Checklist

Describe your issue

When you set a title that goes over a character limit, /settitle's response's Title update failed! Are you missing the required scope?. While not documented in https://dev.twitch.tv/docs/api/reference/#modify-channel-information, when a title's exceeds 140 characters, you receive the following error. An alternative to requesting here could be to set a client side limit, as there's no way to set titles longer than this, no matter the API.

{
    "data": [],
    "error": "Bad Request",
    "message": "Title is too long.",
    "status": 400
}

Screenshots

No response

OS and Chatterino Version

Doesn't matter