mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 18:11:23 +01:00
Guild owner type mismatch during comparison of getting guild channels
This commit is contained in:
parent
329d98e3a5
commit
9f3fb04d9d
@ -147,7 +147,7 @@ def get_guild_channels(guild_id):
|
||||
dbguild = db.session.query(Guilds).filter(Guilds.guild_id == guild_id).first()
|
||||
guild_channels = json.loads(dbguild.channels)
|
||||
guild_roles = json.loads(dbguild.roles)
|
||||
guild_owner = json.loads(dbguild.owner_id)
|
||||
guild_owner = str(dbguild.owner_id)
|
||||
result_channels = []
|
||||
for channel in guild_channels:
|
||||
if channel['type'] == "text":
|
||||
|
Loading…
Reference in New Issue
Block a user