From 4081e6d1825d06185d79a92d1fb8bfd656987041 Mon Sep 17 00:00:00 2001 From: "Ronald M. Clifford" Date: Mon, 29 May 2023 18:26:55 -0700 Subject: [PATCH] Don't crash `!notqualified` if the team is disbanded. --- src/discord/commands/notqualified.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord/commands/notqualified.js b/src/discord/commands/notqualified.js index 7dc50097..0b1a4272 100644 --- a/src/discord/commands/notqualified.js +++ b/src/discord/commands/notqualified.js @@ -76,7 +76,7 @@ class NotQualified { embeds: [ Discord.embedBuilder({ description: `**${team.name}** is set as no longer being qualified to affect other teams' ratings.`, - color: team.role.color + color: team.role ? team.role.color : void 0 }) ] });