Permission variable typo, sorry

This commit is contained in:
Jeremy Zhang 2017-09-09 15:21:25 +00:00
parent 83982d0105
commit 1dad3f1d3a

View File

@ -207,7 +207,7 @@ 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 if user_has_permission(perm, 3): # Admin perms override yes
return True return True
return user_has_permission(perm, 29) return user_has_permission(perm, 29)