mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Make token "Bot" removal more lenient
In case of heavy user error. :)
This commit is contained in:
@@ -72,7 +72,7 @@ class ShardingManager extends EventEmitter {
|
||||
* Token to use for obtaining the automatic shard count, and passing to shards
|
||||
* @type {?string}
|
||||
*/
|
||||
this.token = options.token ? options.token.replace(/^Bot /, '') : null;
|
||||
this.token = options.token ? options.token.replace(/^Bot\s*/i, '') : null;
|
||||
|
||||
/**
|
||||
* A collection of shards that this manager has spawned
|
||||
|
||||
Reference in New Issue
Block a user