Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #42 from Mirasaki/39-problems-after-update
Browse files Browse the repository at this point in the history
apply playerLimit in output embed
  • Loading branch information
Mirasaki authored Dec 30, 2022
2 parents 2e53a9b + 09000bd commit 5c7fbb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/dayz/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ const buildLeaderboardEmbedMessages = (guild, res, isDefaultQuery, statToGet, ma
let description = '';
let fields = [];

// Apply player limit variable
if (playerLimit) res = res.slice(0, playerLimit);

// Resolve fields for OVERALL leaderboard
if (isDefaultQuery) {
description = `Overall Leaderboard for ${guild.name}`;
Expand Down

0 comments on commit 5c7fbb3

Please sign in to comment.