mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Has attr instead of get
This commit is contained in:
parent
dbd943f209
commit
eaef3d53d8
@ -50,7 +50,7 @@ def get_user_guilds():
|
||||
return cache.decode("utf-8")
|
||||
req = discordrest_from_user("/users/@me/guilds")
|
||||
if req.status_code != 200:
|
||||
if getattr(request, "sid"):
|
||||
if hasattr(request, "sid"):
|
||||
disconnect()
|
||||
return
|
||||
abort(req.status_code)
|
||||
|
Loading…
Reference in New Issue
Block a user