fix: normalize TOTPKey format and enhance debug messages in RequestHandler
This commit is contained in:
@@ -874,6 +874,10 @@ class Client extends BaseClient {
|
||||
) {
|
||||
throw new TypeError('CLIENT_INVALID_OPTION', 'rejectOnRateLimit', 'an array or a function');
|
||||
}
|
||||
if (typeof options.TOTPKey === 'string') {
|
||||
// Convert to base32 if not already
|
||||
options.TOTPKey = options.TOTPKey.replace(/ +/g, '').toUpperCase();
|
||||
}
|
||||
// Hardcode
|
||||
this.options.shardCount = 1;
|
||||
this.options.shards = [0];
|
||||
|
||||
Reference in New Issue
Block a user