[3.4] Document parameters in remaining chat_formatting functions (#5215) (#5275)

(cherry picked from commit dbd25e92a1)

Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com>

Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2021-09-08 21:51:58 +02:00
committed by GitHub
parent fe147f277f
commit 8f6f2804db

View File

@@ -16,6 +16,11 @@ _ = Translator("UtilsChatFormatting", __file__)
def error(text: str) -> str:
"""Get text prefixed with an error emoji.
Parameters
----------
text : str
The text to be prefixed.
Returns
-------
str
@@ -28,6 +33,11 @@ def error(text: str) -> str:
def warning(text: str) -> str:
"""Get text prefixed with a warning emoji.
Parameters
----------
text : str
The text to be prefixed.
Returns
-------
str
@@ -40,6 +50,11 @@ def warning(text: str) -> str:
def info(text: str) -> str:
"""Get text prefixed with an info emoji.
Parameters
----------
text : str
The text to be prefixed.
Returns
-------
str
@@ -52,6 +67,11 @@ def info(text: str) -> str:
def question(text: str) -> str:
"""Get text prefixed with a question emoji.
Parameters
----------
text : str
The text to be prefixed.
Returns
-------
str