Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare v5.13.0 #1777

Merged
merged 14 commits into from
Jul 18, 2024
Prev Previous commit
Next Next commit
πŸ”¨ typescript said "redundant double negation" - ok
  • Loading branch information
idinium96 committed Jul 18, 2024
commit d6583e2fa94f09f6e043b38863e41886c7fe6fc5
2 changes: 1 addition & 1 deletion src/classes/Friends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class Friends {
).getSteamID64()
};

if (!!this.bot.manager.apiKey) params.key = this.bot.manager.apiKey;
if (this.bot.manager.apiKey) params.key = this.bot.manager.apiKey;
else params.access_token = this.bot.manager.accessToken;

apiRequest<GetBadges>({
Expand Down
2 changes: 1 addition & 1 deletion src/classes/TF2Inventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class TF2Inventory {
return new Promise((resolve, reject) => {
const params: SteamRequestParams = { steamid: this.getSteamID.toString() };

if (!!this.manager.apiKey) params.key = this.manager.apiKey;
if (this.manager.apiKey) params.key = this.manager.apiKey;
else params.access_token = this.manager.accessToken;

apiRequest<GetPlayerItems>({
Expand Down
Loading