mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
More rate limit fixes
This commit is contained in:
parent
f0c326f686
commit
347f001993
@ -159,7 +159,7 @@ def get_online_embed_users(guild_id):
|
|||||||
|
|
||||||
@api.route("/fetch", methods=["GET"])
|
@api.route("/fetch", methods=["GET"])
|
||||||
@valid_session_required(api=True)
|
@valid_session_required(api=True)
|
||||||
@rate_limiter.limit("1 per 5 second", key_func = channel_ratelimit_key)
|
@rate_limiter.limit("1 per 2 second", key_func = channel_ratelimit_key)
|
||||||
def fetch():
|
def fetch():
|
||||||
guild_id = request.args.get("guild_id")
|
guild_id = request.args.get("guild_id")
|
||||||
channel_id = request.args.get('channel_id')
|
channel_id = request.args.get('channel_id')
|
||||||
|
@ -360,7 +360,7 @@ $("#messagebox").keyup(function(event){
|
|||||||
});
|
});
|
||||||
funct.catch(function(data) {
|
funct.catch(function(data) {
|
||||||
if (data.status == 429) {
|
if (data.status == 429) {
|
||||||
Materialize.toast('You are sending messages too fast! 1 msg / 5 secs', 10000);
|
Materialize.toast('You are sending messages too fast! 1 message per 10 seconds', 10000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user