Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
snazzyfox committed Aug 19, 2023
1 parent 3aa1309 commit 8617f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dingomata/discord_bot/commands/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ async def log_message_delete(event: hikari.GuildMessageDeleteEvent | hikari.Guil
for message in messages:
if message:
audit_key = DeleteAuditKey(guild=event.guild_id, channel=event.channel_id, author=message.author.id)
audit: hikari.AuditLogEntryCreateEvent | None = _recent_audits.get(audit_key)
audit: hikari.AuditLogEntry | None = _recent_audits.get(audit_key)
embed = _generate_message_embed(event, audit)
if not message.author.is_bot:
log_channel = event.get_guild().get_channel(log_channel_id)
await log_channel.send(embed=embed)
if audit and audit.entry.user_id == 338303784654733312 and 'cute' in event.old_message.content.lower():
if audit and audit.user_id == 338303784654733312 and 'cute' in event.old_message.content.lower():
await event.get_channel().send(event.old_message.content)


Expand Down

0 comments on commit 8617f1e

Please sign in to comment.