Merge pull request #42 from Payphone-Bot/41-pmask-shows-the-mask-emoji-but-not-the-name

`p.mask` shows the mask emoji but not the name.
This commit is contained in:
Rafael Bradley
2024-10-22 15:51:00 -03:00
committed by GitHub
+2 -5
View File
@@ -181,10 +181,7 @@ class Users(base.Cog):
message = "🕵️ You're masked!" message = "🕵️ You're masked!"
if call_rs is not None: if call_rs is not None:
mask_weared = constants.Mask(call_rs.mask) message += f" You're currently being displayed as **{call_rs.mask_emoji} {call_rs.display_name}**."
mask_name = mask_weared.name.lower().replace("_", "")
message += f" You're currently being displayed as **<:{mask_name}:{call_rs.mask}>**."
else: else:
message += " Your identity will be hidden during calls." message += " Your identity will be hidden during calls."
@@ -238,7 +235,7 @@ class Users(base.Cog):
) )
if current_channel_ongoing_call_user_rs and toggle: if current_channel_ongoing_call_user_rs and toggle:
message += f" You're currently being displayed as **{current_channel_ongoing_call_user_rs.mask_emoji} {current_channel_ongoing_call_user_rs.display_name}**." message += f" Your profile will be displayed as **{current_channel_ongoing_call_user_rs.mask_emoji} {current_channel_ongoing_call_user_rs.display_name}**."
message += ( message += (
f" Use `{ctx.clean_prefix}mask` during a call to see your mask." f" Use `{ctx.clean_prefix}mask` during a call to see your mask."