mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-01 00:20:07 +00:00
Add 'Bot' prefix to token (#510)
* Add 'Bot' prefix to token * Add option for token prefix * Maybe this is what abal meant? * Change option name * Check if token already starts with prefix
This commit is contained in:
@@ -54,6 +54,7 @@ export default class Client extends EventEmitter {
|
||||
this.options.shardId = options.shardId || 0;
|
||||
this.options.shardCount = options.shardCount || 0;
|
||||
this.options.disableEveryone = options.disableEveryone || false;
|
||||
this.options.bot = options.bot === undefined || options.bot === true ? true : false;
|
||||
|
||||
if (typeof options.shardCount === "number" && typeof options.shardId === "number" && options.shardCount > 0) {
|
||||
this.options.shard = [options.shardId, options.shardCount];
|
||||
|
||||
Reference in New Issue
Block a user