Add MANY property to automatically return list from fetch_from_api when many of these models exists

This commit is contained in:
thec0sm0s
2020-05-12 12:35:09 +05:30
parent 6365ab461a
commit 782d09246f
4 changed files with 28 additions and 10 deletions

View File

@@ -78,6 +78,7 @@ class UserConnection(DiscordModelsBase):
"""
MANY = True
ROUTE = "/users/@me/connections"
def __init__(self, payload):