fix/compare combat rating
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -32,10 +32,10 @@ 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`)] });
|
||||||
|
|
||||||
let leaderboard = await client.dbo.collection("players").aggregate([
|
let leaderboard = await client.dbo.collection("players").aggregate([
|
||||||
|
|||||||
+1
-1
@@ -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": {
|
||||||
|
|||||||
Reference in new issue
Block a user