feat(Client): Add authorizeURL method

This commit is contained in:
March 7th
2022-07-23 19:21:37 +07:00
parent 46800d957b
commit eb1aa1458d
3 changed files with 40 additions and 0 deletions

View File

@@ -195,6 +195,8 @@ const Messages = {
`Field with custom id "${customId}" is of type: ${type}; expected ${expected}.`,
INVALID_REMOTE_AUTH_URL: 'Invalid remote auth URL (https://discord.com/ra/{hash})',
INVALID_URL: url =>
`Invalid URL: ${url}.\nMake sure you are using a valid URL (https://discord.com/oauth2/authorize?...)`,
};
for (const [name, message] of Object.entries(Messages)) register(name, message);