Skip to content

Commit

Permalink
Fixed player.guild is always null
Browse files Browse the repository at this point in the history
  • Loading branch information
StavZ committed Oct 23, 2021
1 parent b4d145b commit 17cd106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/getPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ module.exports = async function (query, options = { guild: false, recentGames: f
rankedSW = getRankedSkyWars.call(this, query);
}
[guild, recentGames, rankedSW] = await Promise.all([guild, recentGames, rankedSW]);
return new Player(res.player, this, {guild, recentGames, rankedSW});
return new Player(res.player, {guild, recentGames, rankedSW});
};

0 comments on commit 17cd106

Please sign in to comment.