mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +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
|
||||
try:
|
||||
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:
|
||||
message += f" (⚠️)"
|
||||
elif member.activity.type == discord.ActivityType.streaming:
|
||||
|
|
Loading…
Reference in a new issue