Check for empty messages in edit snipe

pull/136/head
stijndcl 2022-03-15 18:45:58 +01:00
parent 4b003e150b
commit a2ab822803
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ class Events(commands.Cog):
if not checks.freeGamesCheck(after): if not checks.freeGamesCheck(after):
return await self.failedChecksCog.freeGames(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, self.client.snipe[before.channel.id] = Snipe(before.author.id, before.channel.id, before.guild.id, Action.Edit,
before.content, after.content) before.content, after.content)