fix: Export, Typing, etc.

- Rename `RemoteAuth` > `DiscordAuthWebsocket`
- Add new method: Client.remoteAuth() & Client.createToken()
- fix: RedeemNitro (wrong Regex)
This commit is contained in:
March 7th
2022-07-11 15:04:07 +07:00
parent fe9be92bd2
commit b1257bc62d
8 changed files with 136 additions and 45 deletions

View File

@@ -192,6 +192,8 @@ const Messages = {
MODAL_SUBMIT_INTERACTION_FIELD_NOT_FOUND: customId => `Required field with custom id "${customId}" not found.`,
MODAL_SUBMIT_INTERACTION_FIELD_TYPE: (customId, type, expected) =>
`Field with custom id "${customId}" is of type: ${type}; expected ${expected}.`,
INVALID_REMOTE_AUTH_URL: 'Invalid remote auth URL (https://discord.com/ra/{hash})',
};
for (const [name, message] of Object.entries(Messages)) register(name, message);