mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +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
|
||||
|
||||
def get_user_managed_servers():
|
||||
guilds = json.loads(get_user_guilds())
|
||||
fetched = get_user_guilds()
|
||||
if not fetched:
|
||||
return []
|
||||
guilds = json.loads(fetched)
|
||||
filtered = []
|
||||
for guild in guilds:
|
||||
permission = guild['permissions'] # Manage Server, Ban Members, Kick Members
|
||||
|
Loading…
Reference in New Issue
Block a user