fix(logger): testing if there's a discord api error

This commit is contained in:
Seaswimmer 2024-05-24 03:13:03 -04:00
parent 6d0d45736d
commit 742d786bab
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -32,10 +32,10 @@ class Logger(commands.Cog):
if payload.cached_message.author.bot: if payload.cached_message.author.bot:
return return
if len(payload.cached_message.content) > 3898: # if len(payload.cached_message.content) > 3898:
content = payload.cached_message.content[:3900] + "..." # content = payload.cached_message.content[:3900] + "..."
else: # else:
content = payload.cached_message.content content = payload.cached_message.content
author = payload.cached_message.author author = payload.cached_message.author