mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Server administrators may disable captchas for guest users
This commit is contained in:
		@@ -11,6 +11,7 @@ class Guilds(Base):
 | 
			
		||||
    guest_icon = db.Column(db.String(255), default=None) # Guest icon url, None if unset
 | 
			
		||||
    chat_links = db.Column(db.Boolean())            # If users can post links
 | 
			
		||||
    bracket_links = db.Column(db.Boolean())         # If appending brackets to links to prevent embed
 | 
			
		||||
    unauth_captcha = db.Column(db.Boolean(), nullable=False, server_default="1")         # Enforce captcha on guest users
 | 
			
		||||
    mentions_limit = db.Column(db.Integer)          # If there is a limit on the number of mentions in a msg
 | 
			
		||||
    roles = db.Column(db.Text().with_variant(db.Text(length=4294967295), 'mysql'))   # Guild Roles
 | 
			
		||||
    channels = db.Column(db.Text().with_variant(db.Text(length=4294967295), 'mysql'))# Guild channels
 | 
			
		||||
@@ -29,6 +30,7 @@ class Guilds(Base):
 | 
			
		||||
        self.guest_icon = None
 | 
			
		||||
        self.chat_links = True
 | 
			
		||||
        self.bracket_links = True
 | 
			
		||||
        self.unauth_captcha = True
 | 
			
		||||
        self.mentions_limit = -1 # -1 = unlimited mentions
 | 
			
		||||
        self.roles = roles
 | 
			
		||||
        self.channels = channels
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user