fix(shard): 🐛 Fix p.mask not responding when the user hasn't participated in the call yet.
This commit is contained in:
@@ -155,10 +155,14 @@ class Calls(base.Cog):
|
|||||||
participant = await call.get_participant(ctx.author.id)
|
participant = await call.get_participant(ctx.author.id)
|
||||||
|
|
||||||
if user.is_masked:
|
if user.is_masked:
|
||||||
message += f" You're currently being displayed as **{masks.get_mask_emoji(participant.mask)} {masks.get_mask_name(participant.mask)}**."
|
if participant is not None:
|
||||||
|
message += f" You're currently being displayed as **{masks.get_mask_emoji(participant.mask)} {masks.get_mask_name(participant.mask)}**."
|
||||||
|
|
||||||
|
else:
|
||||||
|
message += " Participate in the call to see your mask."
|
||||||
|
|
||||||
message += (
|
message += (
|
||||||
" You can toggle your mask on or off using `p.mask on` or `p.mask off`."
|
" You can toggle your mask on or off using `p.mask on` and `p.mask off`."
|
||||||
)
|
)
|
||||||
|
|
||||||
return await ctx.send(message)
|
return await ctx.send(message)
|
||||||
|
|||||||
Reference in New Issue
Block a user