aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2020-01-15 20:55:10 -0500
committerGravatar S. Co1 <[email protected]>2020-01-15 20:55:10 -0500
commit76f976289aa6ae85979c2f8596d68db00555c2a5 (patch)
tree8f9215d84c27079bf7f51805ec01eeab3d2f5018 /tests
parentDiscord.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