From 33d966c0e58dffd5315fa91aab608964b12ebd58 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 8 Aug 2023 02:00:25 -0400 Subject: [PATCH] fix: made evidence be declared as None if there is no evidence given --- shortmute/shortmute.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shortmute/shortmute.py b/shortmute/shortmute.py index 2225954..b099573 100644 --- a/shortmute/shortmute.py +++ b/shortmute/shortmute.py @@ -52,6 +52,8 @@ class Shortmute(commands.Cog): evidence = evidence_link elif evidence_image: evidence = str(evidence_image) + else: + evidence = None immune_roles_list = await self.config.guild(interaction.guild).immune_roles() for role_id in immune_roles_list: role = interaction.guild.get_role(role_id)