From 3736887e9b97c2b26bf0767d60543ded5a41c851 Mon Sep 17 00:00:00 2001 From: Eric Wohltman Date: Mon, 6 Apr 2020 14:00:23 -0400 Subject: [PATCH] Bitwise view channel permission (#758) * Fix offset for PermissionViewChannel * Fix offset for PermissionViewChannel --- structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs.go b/structs.go index 730c91f..5ce8769 100644 --- a/structs.go +++ b/structs.go @@ -1015,7 +1015,7 @@ const ( PermissionManageServer PermissionAddReactions PermissionViewAuditLogs - PermissionViewChannel = 1 << (iota + 10) + PermissionViewChannel = 1 << (iota + 2) PermissionAllText = PermissionViewChannel | PermissionSendMessages |