permissions

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionBit

type PermissionBit uint64
const (
	CreateInstantInvite PermissionBit = 1 << iota
	KickMembers
	BanMembers
	Administrator
	ManageChannels
	ManageGuild
	AddReactions
	ViewAuditLog
	PrioritySpeaker
	Stream
	ViewChannel
	SendMessages
	SendTTSMessages
	ManageMessages
	EmbedLinks
	AttachFiles
	ReadMessageHistory
	MentionEveryone
	UseExternalEmojis
	ViewGuildInsights
	Connect
	Speak
	MuteMembers
	DeafenMembers
	MoveMembers
	UseVAD
	ChangeNickname
	ManageNicknames
	ManageRoles
	ManageWebhooks
	ManageEmojisAndStickers
	UseApplicationCommands
	RequestToSpeak
	ManageEvents
	ManageThreads
	CreatePublicThreads
	CreatePrivateThreads
	UseExternalStickers
	SendMessagesInThreads
	StartEmbeddedActivities
	ModerateMembers
)

func (PermissionBit) Has

func (p PermissionBit) Has(bits PermissionBit) bool

func (PermissionBit) HasOrAdmin

func (p PermissionBit) HasOrAdmin(bits PermissionBit) bool

func (*PermissionBit) MarshalJSON

func (p *PermissionBit) MarshalJSON() ([]byte, error)

func (PermissionBit) String

func (i PermissionBit) String() string

func (*PermissionBit) UnmarshalJSON

func (p *PermissionBit) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL