permissions

package
v0.0.0-...-b78a99e Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2016 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Perm

type Perm struct {
	CreateInstantInvite bool
	KickMembers         bool
	BanMembers          bool
	ManageRoles         bool
	ManageChannels      bool
	ManageGuild         bool

	// Text
	ReadMessages       bool
	SendMessages       bool
	SendTssMessages    bool
	ManageMessages     bool
	EmbedLinks         bool
	AttachFiles        bool
	ReadMessageHistory bool
	MentionEveryone    bool

	// Voice
	Connect       bool
	Speak         bool
	MuteMembers   bool
	DeafenMembers bool
	MoveMembers   bool
	UseVad        bool
}

func FromInt

func FromInt(mask int) (p Perm)

func (*Perm) FromInt

func (p *Perm) FromInt(mask int)

func (Perm) MarshalJSON

func (p Perm) MarshalJSON() ([]byte, error)

func (Perm) ToInt

func (p Perm) ToInt() int

func (*Perm) UnmarshalJSON

func (p *Perm) UnmarshalJSON(raw []byte) error

Jump to

Keyboard shortcuts

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