mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
If administrator, it should be allowed to create webhooks
This commit is contained in:
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):
|
||||
|
Loading…
Reference in New Issue
Block a user