Browse Source
Fix bug in Embed.__len__ caused by footer without text
pull/6961/head
Mikey
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
discord/embeds.py
|
|
@ -273,11 +273,11 @@ class Embed: |
|
|
|
total += len(field['name']) + len(field['value']) |
|
|
|
|
|
|
|
try: |
|
|
|
footer = self._footer |
|
|
|
except AttributeError: |
|
|
|
footer_text = self._footer['text'] |
|
|
|
except (AttributeError, KeyError): |
|
|
|
pass |
|
|
|
else: |
|
|
|
total += len(footer['text']) |
|
|
|
total += len(footer_text) |
|
|
|
|
|
|
|
try: |
|
|
|
author = self._author |
|
|
|