mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Set cache of get guild channels to lower, 1 min
This commit is contained in:
		@@ -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
 | 
			
		||||
    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):
 | 
			
		||||
    if user_unauthenticated():
 | 
			
		||||
        member_roles = [guild_id] #equivilant to @everyone role
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user