From a2ab822803e52d1f5bda62826e9c7462677684de Mon Sep 17 00:00:00 2001 From: stijndcl Date: Tue, 15 Mar 2022 18:45:58 +0100 Subject: [PATCH] Check for empty messages in edit snipe --- cogs/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/events.py b/cogs/events.py index 69a10bd..5bcf52f 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -301,7 +301,7 @@ class Events(commands.Cog): if not checks.freeGamesCheck(after): return await self.failedChecksCog.freeGames(after) - if should_snipe(before): + if before.content and after.content and should_snipe(before): self.client.snipe[before.channel.id] = Snipe(before.author.id, before.channel.id, before.guild.id, Action.Edit, before.content, after.content)