From 4b4f161fac2bcbe13826d5633d37b9f397cc5715 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Wed, 7 Dec 2022 18:05:02 -0800 Subject: [PATCH] 4.2.2 debug undefined in /channels command --- commands/channels.js | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/channels.js b/commands/channels.js index ffdd8d3..5f1abfc 100644 --- a/commands/channels.js +++ b/commands/channels.js @@ -32,10 +32,11 @@ module.exports = { let channels = new EmbedBuilder() .setColor(client.config.Colors.Default) .setTitle('Channels') - let des; + + let des = ''; for (let i = 0; i < GuildDB.allowedChannels.length; i++) { if (i == 0) des += `> <#${GuildDB.allowedChannels[i]}>`; - else des += `\n > <#${GuildDB.allowedChannels[i]}>`; + else des += `\n> <#${GuildDB.allowedChannels[i]}>`; } channels.setDescription(des); diff --git a/package.json b/package.json index 68b90d3..6b5717f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "4.2.1", + "version": "4.2.2", "description": "A Discord Bot to handle DayZ server flags and armbands for in game factions.", "main": "index.js", "nodemonConfig": {