Add success function to char_formatting

This commit is contained in:
Predeactor - Triarius
2021-10-26 21:18:23 +02:00
parent 1335926a77
commit f2422ad782

View File

@@ -63,7 +63,21 @@ def info(text: str) -> str:
"""
return f"\N{INFORMATION SOURCE}\N{VARIATION SELECTOR-16} {text}"
def success(text: str) -> str:
"""Get text prefixed with a success emoji.
Parameters
----------
text : str
The text to be prefixed.
Returns
-------
str
The new message.
"""
return f"\N{WHITE HEAVY CHECK MARK} {text}"
def question(text: str) -> str:
"""Get text prefixed with a question emoji.