Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams committed Oct 29, 2023
1 parent 535d5d3 commit 739ce18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const setupRoles = async (client, user, guildId, remove) => {
user = user.flat().at(0)

const playerParam = { param: user.faceitId, faceitId: true }
const playerDatas = await getStats({ playerParam, game: defaultGame, matchNumber: 1 }).catch(() => null)
const { playerDatas } = await getStats({ playerParam, game: defaultGame, matchNumber: 1 }).catch(() => null)
if (!playerDatas?.games[defaultGame]) return

const playerElo = playerDatas.games[defaultGame].faceit_elo
Expand Down

0 comments on commit 739ce18

Please sign in to comment.