permissions

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrForbidden = errors.New("forbidden")

Functions

This section is empty.

Types

type PlayerRole

type PlayerRole int
const (
	PlayerRoleBanned PlayerRole = iota - 1
	PlayerRoleUnregistered
	PlayerRoleUser
	PlayerRoleInternal
)

type Scope

type Scope struct {
	ID         int64
	PlayerRole PlayerRole

	SquadID   *string
	GuildID   *string
	SquadRole SquadRole
}

type SquadRole

type SquadRole int
const (
	SquadRoleNone SquadRole = iota
	SquadRoleMember
	SquadRoleSquire
	SquadRoleLeader
)

Jump to

Keyboard shortcuts

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