WIP: Refactor Aurora (3.0.0) #29
1 changed files with 7 additions and 5 deletions
|
@ -152,10 +152,12 @@ async def send_evidenceformat(interaction: Interaction, moderation_id: int) -> N
|
||||||
|
|
||||||
def get_bool_emoji(value: Optional[bool]) -> str:
|
def get_bool_emoji(value: Optional[bool]) -> str:
|
||||||
"""Returns a unicode emoji based on a boolean value."""
|
"""Returns a unicode emoji based on a boolean value."""
|
||||||
if value is True:
|
match value:
|
||||||
|
case True:
|
||||||
return "\N{WHITE HEAVY CHECK MARK}"
|
return "\N{WHITE HEAVY CHECK MARK}"
|
||||||
if value is False:
|
case False:
|
||||||
return "\N{NO ENTRY SIGN}"
|
return "\N{NO ENTRY SIGN}"
|
||||||
|
case _:
|
||||||
return "\N{BLACK QUESTION MARK ORNAMENT}\N{VARIATION SELECTOR-16}"
|
return "\N{BLACK QUESTION MARK ORNAMENT}\N{VARIATION SELECTOR-16}"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue