mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 22:17:03 +01:00
Looks like chrome cant handle servers with 2,000 messages from our cache
This commit is contained in:
parent
afbbb987ca
commit
d365595e3d
@ -85,7 +85,7 @@ class RedisQueue:
|
||||
mention["discriminator"] = author["discriminator"]
|
||||
msgs.append(message)
|
||||
sorted_msgs = sorted(msgs, key=lambda k: k['id'], reverse=True)
|
||||
return sorted_msgs
|
||||
return sorted_msgs[:50] # only return last 50 messages in cache please
|
||||
|
||||
def get_guild_member(self, guild_id, user_id):
|
||||
key = "/guilds/{}/members/{}".format(guild_id, user_id)
|
||||
|
Loading…
Reference in New Issue
Block a user