mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	If administrator, it should be allowed to create webhooks
This commit is contained in:
		@@ -207,6 +207,8 @@ def bot_can_create_webhooks(guild):
 | 
				
			|||||||
            if g_role["id"] == m_role:
 | 
					            if g_role["id"] == m_role:
 | 
				
			||||||
                perm |= g_role["permissions"]
 | 
					                perm |= g_role["permissions"]
 | 
				
			||||||
                continue
 | 
					                continue
 | 
				
			||||||
 | 
					    if user_has_permission(channel_perm, 3): # Admin perms override yes
 | 
				
			||||||
 | 
					        return True
 | 
				
			||||||
    return user_has_permission(perm, 29)
 | 
					    return user_has_permission(perm, 29)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def guild_webhooks_enabled(guild_id):
 | 
					def guild_webhooks_enabled(guild_id):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user