1
0
mirror of https://github.com/TitanEmbeds/Titan.git synced 2025-04-01 22:51:55 +02:00

If administrator, it should be allowed to create webhooks

This commit is contained in:
Jeremy Zhang 2017-09-09 15:16:29 +00:00
parent de52142b24
commit 83982d0105

@ -207,6 +207,8 @@ def bot_can_create_webhooks(guild):
if g_role["id"] == m_role:
perm |= g_role["permissions"]
continue
if user_has_permission(channel_perm, 3): # Admin perms override yes
return True
return user_has_permission(perm, 29)
def guild_webhooks_enabled(guild_id):