[Docs] Add missing descriptions for function returns (#3054)

* docs: add missing descriptions for function returns

* chore(changelog): add towncrier entry
This commit is contained in:
jack1142
2019-10-22 04:41:35 +02:00
committed by Michael H
parent a3b6aafaca
commit 8267ad9aab
7 changed files with 20 additions and 4 deletions

View File

@@ -561,7 +561,7 @@ class CaseType:
Returns
-------
CaseType
The case type object created from given data.
"""
data_copy = data.copy()
data_copy.pop("name", None)
@@ -808,6 +808,7 @@ async def get_casetype(name: str, guild: Optional[discord.Guild] = None) -> Opti
Returns
-------
Optional[CaseType]
Case type with provided name. If such case type doesn't exist this will be `None`.
"""
data = await _conf.custom(_CASETYPES, name).all()
if not data: