diff options
| author | 2020-01-15 20:55:10 -0500 | |
|---|---|---|
| committer | 2020-01-15 20:55:10 -0500 | |
| commit | 76f976289aa6ae85979c2f8596d68db00555c2a5 (patch) | |
| tree | 8f9215d84c27079bf7f51805ec01eeab3d2f5018 /tests | |
| parent | Discord.py server added to whitelist (diff) | |
Fix user command error for empty custom status
In the scenario where a user has a custom status set to only an emoji & blank text value, their activity status is set as `None`, which causes `discord.utils.escape_markdown` to raise an exception, as it's expecting something string-like.
We can guard against this by checking for a `None` value & skipping the markdown escape if necessary.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions