mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-09 02:42:30 -05:00
Add success function to char_formatting
This commit is contained in:
@@ -63,7 +63,21 @@ def info(text: str) -> str:
|
|||||||
"""
|
"""
|
||||||
return f"\N{INFORMATION SOURCE}\N{VARIATION SELECTOR-16} {text}"
|
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:
|
def question(text: str) -> str:
|
||||||
"""Get text prefixed with a question emoji.
|
"""Get text prefixed with a question emoji.
|
||||||
|
|||||||
Reference in New Issue
Block a user