From 13032fe18417daf562343a9018637f36ff9ece19 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 28 Dec 2023 10:03:18 -0500 Subject: [PATCH] fix(art): fixed artset list erroring if configs aren't set --- art/art.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/art/art.py b/art/art.py index 1e669d0..da90ba1 100644 --- a/art/art.py +++ b/art/art.py @@ -65,4 +65,12 @@ class Art(commands.Cog): """List all settings.""" art_channel = ctx.guild.get_channel(await self.config.guild(ctx.guild).art_channel()) art_submission_channel = ctx.guild.get_channel(await self.config.guild(ctx.guild).art_submission_channel()) + if art_channel: + response_str = f"Art channel: {art_channel.mention}\n" + else: + response_str = "Art channel not set.\n" + if art_submission_channel: + response_str += f"Art submission channel: {art_submission_channel.mention}" + else: + response_str += "Art submission channel not set." await ctx.send(f"Art channel: {art_channel.mention}\nArt submission channel: {art_submission_channel.mention}")