aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-02 17:46:11 +0200
committerGravatar ks123 <[email protected]>2020-03-02 17:46:11 +0200
commitb0fb34d553663fd71121a005a9b6f7651da8e90a (patch)
tree64fc23e932d79f82ecb86652fcce0701cd7b365d
parent(Games Cog): Moved layouts, request bodies and URLs to Templates. Added token... (diff)
(Games Cog): Fixed and added content to docstrings.
-rw-r--r--bot/seasons/evergreen/game.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/game.py b/bot/seasons/evergreen/game.py
index b52c1b93..46fdc689 100644
--- a/bot/seasons/evergreen/game.py
+++ b/bot/seasons/evergreen/game.py
@@ -254,7 +254,7 @@ class Games(Cog):
"""
Get list of games from IGDB API by parameters that is provided.
- Amount param show how much movies this get, genre is genre ID and at least one genre in game must this when
+ Amount param show how much games this get, genre is genre ID and at least one genre in game must this when
provided. Sort is sorting by specific field and direction, ex. total_rating desc/asc (total_rating is field,
desc/asc is direction). Additional_body is field where you can pass extra search parameters. Offset show start
position in API.
@@ -330,7 +330,12 @@ class Games(Cog):
return lines
async def get_companies_list(self, limit: int, offset: int = 0) -> List[Dict[str, Any]]:
- """Get random Game Companies from IGDB API."""
+ """
+ Get random Game Companies from IGDB API.
+
+ Limit is parameter, that show how much movies this should return, offset show in which position should API start
+ returning results.
+ """
# Create request body from template
body = COMPANIES_LIST_BODY.substitute({
"limit": limit,