mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Check for empty messages in edit snipe
This commit is contained in:
parent
4b003e150b
commit
a2ab822803
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue