mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Git you suck, just undid my work this morning
This commit is contained in:
parent
b040f614c2
commit
38ff5f2767
@ -186,8 +186,8 @@ def get_guild_channels(guild_id):
|
|||||||
result["read"] = False
|
result["read"] = False
|
||||||
result["write"] = False
|
result["write"] = False
|
||||||
|
|
||||||
if result["read"]:
|
#if result["read"]:
|
||||||
result_channels.append(result)
|
result_channels.append(result)
|
||||||
return sorted(result_channels, key=lambda k: k['channel']['position'])
|
return sorted(result_channels, key=lambda k: k['channel']['position'])
|
||||||
|
|
||||||
def filter_guild_channel(guild_id, channel_id):
|
def filter_guild_channel(guild_id, channel_id):
|
||||||
@ -309,7 +309,7 @@ def create_unauthenticated_user():
|
|||||||
username = username.strip()
|
username = username.strip()
|
||||||
if len(username) < 2 or len(username) > 32:
|
if len(username) < 2 or len(username) > 32:
|
||||||
abort(406)
|
abort(406)
|
||||||
if not all(x.isalpha() or x.isspace() or "-" == x or "_" == x for x in username):
|
if not all(x.isalnum() or x.isspace() or "-" == x or "_" == x for x in username):
|
||||||
abort(406)
|
abort(406)
|
||||||
if not check_guild_existance(guild_id):
|
if not check_guild_existance(guild_id):
|
||||||
abort(404)
|
abort(404)
|
||||||
|
Loading…
Reference in New Issue
Block a user