From 4a079869d61cefc5e407570566282689cfaa6081 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 23 Apr 2023 11:08:41 -0700 Subject: [PATCH] add limit to leaderboard --- commands/config.js | 6 +++--- commands/leaderboard.js | 1 + package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/config.js b/commands/config.js index 793783d..6a852fa 100644 --- a/commands/config.js +++ b/commands/config.js @@ -609,8 +609,8 @@ module.exports = { return interaction.send({ embeds: [errorEmbed] }); } else { const prompt = new EmbedBuilder() - .setTitle(`Are you sure you want to remove this role as an income?`) - .setColor(client.config.Colors.Default) + .setTitle(`Are you sure you want to remove this role as an income?`) + .setColor(client.config.Colors.Default) const opt = new ActionRowBuilder() .addComponents( @@ -663,7 +663,7 @@ module.exports = { .setColor(client.config.Colors.Green) .setTitle(`Success: You ${action} the channel.`) - return interactino.update({ embeds: [successEmbed], components: [] }); + return interaction.update({ embeds: [successEmbed], components: [] }); } }, diff --git a/commands/leaderboard.js b/commands/leaderboard.js index fd60921..e87e000 100644 --- a/commands/leaderboard.js +++ b/commands/leaderboard.js @@ -31,6 +31,7 @@ module.exports = { value: "limit", type: 4, min_value: 1, + max_value: 25, required: true, }], SlashCommand: { diff --git a/package.json b/package.json index 041a891..df523d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "6.5.2", + "version": "6.5.3", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {