mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-26 06:57:04 +01:00
return empty list if user guilds are empty
This commit is contained in:
parent
f447305b03
commit
b516f8af3a
@ -59,7 +59,10 @@ def get_user_guilds():
|
|||||||
return req
|
return req
|
||||||
|
|
||||||
def get_user_managed_servers():
|
def get_user_managed_servers():
|
||||||
guilds = json.loads(get_user_guilds())
|
fetched = get_user_guilds()
|
||||||
|
if not fetched:
|
||||||
|
return []
|
||||||
|
guilds = json.loads(fetched)
|
||||||
filtered = []
|
filtered = []
|
||||||
for guild in guilds:
|
for guild in guilds:
|
||||||
permission = guild['permissions'] # Manage Server, Ban Members, Kick Members
|
permission = guild['permissions'] # Manage Server, Ban Members, Kick Members
|
||||||
|
Loading…
Reference in New Issue
Block a user