v0.1.0 #20

Merged
profitroll merged 3 commits from dev into main 2024-12-27 23:38:14 +02:00
Showing only changes of commit 7a64e334d2 - Show all commits

View File

@ -43,7 +43,18 @@ class Logger(commands.Cog):
> 0
)
):
await message.delete()
try:
logger.info(
"Deleting the thread creation message in a custom channel %s",
message.channel.id,
)
await message.delete()
except Exception as exc:
logger.warning(
"Could not delete the thread creation message in a custom channel %s due to %s",
message.channel.id,
exc,
)
@commands.Cog.listener()
async def on_member_join(self, member: Member) -> None: