Feat: Update the ban message.

For some reason, the user's name was None. I'm guessing because they were
banned and are no longer a member or something. Don't need to record the member's
name anyway though, as its already a part of the audit log.
This commit is contained in:
2025-07-16 21:24:03 -04:00
parent 1b08ba1355
commit e9a7e0e2d5
+1 -1
View File
@@ -24,7 +24,7 @@ class SubmissionListener(commands.Cog, name="Message Listener"):
# due to message.author not being a nextcord.Member object. # due to message.author not being a nextcord.Member object.
if message.channel.id == settings.channel_ids.ban and isinstance(message.author, nextcord.Member): if message.channel.id == settings.channel_ids.ban and isinstance(message.author, nextcord.Member):
await message.author.ban( await message.author.ban(
delete_message_seconds=30 * 60, reason=f"{message.author.nick} messaged in the ban channel!" delete_message_seconds=30 * 60, reason="Probable spam. The ban channel was messaged."
) )
return return