mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Set cache of get guild channels to lower, 1 min
This commit is contained in:
parent
e342a44c26
commit
674c98b100
@ -106,7 +106,7 @@ def format_post_content(message):
|
|||||||
message = "**<{}#{}>** {}".format(session['username'], session['discriminator'], message) # I would like to do a @ mention, but i am worried about notif spam
|
message = "**<{}#{}>** {}".format(session['username'], session['discriminator'], message) # I would like to do a @ mention, but i am worried about notif spam
|
||||||
return message
|
return message
|
||||||
|
|
||||||
@cache.cached(timeout=300, key_prefix=make_guildchannels_cache_key)
|
@cache.cached(timeout=60, key_prefix=make_guildchannels_cache_key)
|
||||||
def get_guild_channels(guild_id):
|
def get_guild_channels(guild_id):
|
||||||
if user_unauthenticated():
|
if user_unauthenticated():
|
||||||
member_roles = [guild_id] #equivilant to @everyone role
|
member_roles = [guild_id] #equivilant to @everyone role
|
||||||
|
Loading…
Reference in New Issue
Block a user