From f2422ad782258990a56438db8abad61180cea681 Mon Sep 17 00:00:00 2001 From: Predeactor - Triarius Date: Tue, 26 Oct 2021 21:18:23 +0200 Subject: [PATCH] Add success function to char_formatting --- redbot/core/utils/chat_formatting.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/redbot/core/utils/chat_formatting.py b/redbot/core/utils/chat_formatting.py index 0894810cf..b2afd9902 100644 --- a/redbot/core/utils/chat_formatting.py +++ b/redbot/core/utils/chat_formatting.py @@ -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.