package permission type Global uint32 const ( // Hub permissions GlobalSetHubName Global = 1 << iota GlobalSetHubBg GlobalSetHubColor GlobalRemoveHub GlobalSetUserColorAllowed // User permissions GlobalAddUser GlobalRemoveUser GlobalRenameUser GlobalMuteUser // Role permissions GlobalAddRole GlobalRemoveRole GlobalChangeRoleName GlobalChangeRoleColor GlobalChangeRoleGlobals GlobalOnlySelfRoleRemove // Channel group permissions GlobalAddChannelGroup GlobalRemoveChannelGroup GlobalSetChannelGroupName GlobalSetChannelGroupColor GlobalSetChannelGroupPermittedVisibleRoles // Channel permissions GlobalAddChannel GlobalRemoveChannel GlobalSetChannelName GlobalSetChannelPermittedVisibleRoles GlobalSetChannelPermittedSendMessageRoles GlobalSetChannelPermittedReadHistoryRoles ) type ChannelGroup uint16 const ( // Channel group permission ChannelGroupSetName ChannelGroup = 1 << iota ChannelGroupSetColor ChannelGroupSetPermittedVisibleRoles // Channel permission ChannelGroupAddChannel ChannelGroupRemoveChannel ChannelGroupSetChannelName ChannelGroupSetChannelPermittedVisibleRoles ChannelGroupSetChannelPermittedSendMessageRoles ChannelGroupSetChannelPermittedReadHistoryRoles )