feat: update OAuth2 authorization options and add method warnings for deprecated functionality

This commit is contained in:
Elysia
2024-11-27 20:34:27 +07:00
parent 30a714786f
commit a12b84da74
3 changed files with 25 additions and 3 deletions

View File

@@ -209,6 +209,9 @@ const Messages = {
STREAM_CANNOT_JOIN: 'Cannot join a stream to itself',
VOICE_USER_NOT_STREAMING: 'User is not streaming',
POLL_ALREADY_EXPIRED: 'This poll has already expired.',
INVALID_OAUTH_OPTIONS: 'Invalid options for authenticating with OAuth2.',
METHOD_WARNING:
'This method is flagged as it may lead to a temporary or permanent account ban. Do not use until further notice.',
};
for (const [name, message] of Object.entries(Messages)) register(name, message);