From bb214760572ef01bbd6c47738f1c1c6ce0f14a4a Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 2 Jul 2024 21:04:16 -0600 Subject: [PATCH] Possible MOTD fix? --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f169f73..68f8172 100644 --- a/index.js +++ b/index.js @@ -120,7 +120,7 @@ client.on('interactionCreate', async interaction => { }, { name: "MOTD", - value: `\`${data.description?.split("\n")[0]}\`\n\`${data.description?.split("\n")[1]}\`` + value: `\`${data.description?.split("\n")[0] || ""}\`\n\`${data.description?.split("\n")[1] || ""}\`` }, data.players.sample?.length > 0 ? { name: "Players",