mirror of https://github.com/stijndcl/didier
Compare commits
2 Commits
9341554040
...
a2ab822803
| Author | SHA1 | Date |
|---|---|---|
|
|
a2ab822803 | |
|
|
4b003e150b |
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ if __name__ == "__main__":
|
|||
# Configure intents (1.5.0)
|
||||
intents = discord.Intents.default()
|
||||
intents.members = True
|
||||
intents.message_content = True
|
||||
|
||||
client = Didier(command_prefix=get_prefix, case_insensitive=True, intents=intents, activity=activity, status=status)
|
||||
client.run(TOKEN)
|
||||
|
|
|
|||
Loading…
Reference in New Issue