mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Make 422 status when titan failed to add user to guild
This commit is contained in:
@ -969,6 +969,8 @@
|
||||
Materialize.toast('Authentication error! You have been banned.', 10000);
|
||||
} else if (data.status == 406) {
|
||||
Materialize.toast('Illegal username provided! Only alphanumeric, spaces, dashes, and underscores allowed in usernames.', 10000);
|
||||
} else if (data.status == 422) {
|
||||
Materialize.toast("Attempting to add you into the server has failed. Either you are banned, reached 100 servers in Discord, or something else bad has happened.", 10000);
|
||||
}
|
||||
unlock_login_fields();
|
||||
setVisitorMode(true);
|
||||
|
Reference in New Issue
Block a user