Version bump, warnings, code refactor!

This commit is contained in:
Pierce 2019-08-27 17:30:44 -04:00
parent 69a754721f
commit d83aadc4c3
3 changed files with 4 additions and 4 deletions

View file

@ -417,9 +417,7 @@ class Handler {
const minArgs = this.options.overrides.minArgs || 5;
if(args.length < minArgs) args = args.concat(this.version.minecraftArguments ? this.version.minecraftArguments.split(' ') : this.version.arguments.game);
if({}.toString.call(this.options.authorization) === "[object Promise]") {
this.options.authorization = await this.options.authorization;
}
this.options.authorization = await Promise.resolve(this.options.authorization);
const fields = {
'${auth_access_token}': this.options.authorization.access_token,