Skip to content

Commit

Permalink
In webhook.MessageFormatter.check_limits handle author.name field bei…
Browse files Browse the repository at this point in the history
…ng None
  • Loading branch information
user committed Mar 26, 2024
1 parent f2eb159 commit 83a53dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avtdl/plugins/discord/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Limits:
total_length = 0
embeds = message.get('embeds', [])
for embed in embeds:
author_name = len(embed.get('author', {}).get('name', ''))
author_name = len(embed.get('author', {}).get('name', '') or '')
title = len(embed.get('title') or '')
description = len(embed.get('description') or '')
footer_text = len((embed.get('footer') or {}).get('text') or '')
Expand Down

0 comments on commit 83a53dc

Please sign in to comment.