fix/compare combat rating

This commit is contained in:
SowinskiBraeden committed 2023-11-09 18:46:26 -08:00
1 parent c6c5cec7ce
commit 37dd14ea84
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -32,9 +32,9 @@ module.exports = {
* @param {string[]} args * @param {string[]} args
* @param {*} param3 * @param {*} param3
*/ */
run: async (client, interaction, args, { GuildDB }, start) => { run: async (client, interaction, args, { GuildDB }) => {
let discord = args[1] && args[1].name == 'discord' ? args[1].value : undefined; let discord = args[0] && args[0].name == 'discord' ? args[0].value : undefined;
let gamertag = args[1] && args[1].name == 'gamertag' ? args[1].value : undefined; let gamertag = args[0] && args[0].name == 'gamertag' ? args[0].value : undefined;
if (!discord && !gamertag) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(`Please provide a Discord User or Gamertag`)] }); if (!discord && !gamertag) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(`Please provide a Discord User or Gamertag`)] });
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayzr-bot", "name": "dayzr-bot",
"version": "12.4.0", "version": "12.4.1",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {