mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
escape
This commit is contained in:
parent
5ff11f2a98
commit
f072cd7249
1 changed files with 1 additions and 1 deletions
|
@ -642,7 +642,7 @@ class RoyalDiscordBot(discord.Client):
|
||||||
# Rich presence
|
# Rich presence
|
||||||
try:
|
try:
|
||||||
if member.activity.state is not None:
|
if member.activity.state is not None:
|
||||||
message += f" ({escape(member.activity.state} | {member.activity.details)})"
|
message += f" ({escape(member.activity.state)} | {escape(member.activity.details)})"
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
message += f" (⚠️)"
|
message += f" (⚠️)"
|
||||||
elif member.activity.type == discord.ActivityType.streaming:
|
elif member.activity.type == discord.ActivityType.streaming:
|
||||||
|
|
Loading…
Reference in a new issue