Explorar el Código

Bitwise view channel permission (#758)

* Fix offset for PermissionViewChannel

* Fix offset for PermissionViewChannel
Eric Wohltman hace 5 años
padre
commit
3736887e9b
Se han modificado 1 ficheros con 1 adiciones y 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 |