Explorar o código

Bitwise view channel permission (#758)

* Fix offset for PermissionViewChannel

* Fix offset for PermissionViewChannel
Eric Wohltman %!s(int64=5) %!d(string=hai) anos
pai
achega
3736887e9b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      structs.go

+ 1 - 1
structs.go

@@ -1015,7 +1015,7 @@ const (
 	PermissionManageServer
 	PermissionAddReactions
 	PermissionViewAuditLogs
-	PermissionViewChannel = 1 << (iota + 10)
+	PermissionViewChannel = 1 << (iota + 2)
 
 	PermissionAllText = PermissionViewChannel |
 		PermissionSendMessages |