command

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractUserId

func ExtractUserId(user string) string

func IsDiscordUser

func IsDiscordUser(user string) bool

func SendError

func SendError(message string, sender ...string) string

func SendFatal

func SendFatal(message string, sender ...string) string

func SendSuccess

func SendSuccess(message string, sender ...string) string

Types

type Permissions

type Permissions struct {
	Client          permsrv.PermissionsService
	PermissionsList []string
}

Should perform.go setup its own client?

func NewPermission

func NewPermission(client permsrv.PermissionsService, permissionsList []string) *Permissions

func (Permissions) CanPerform

func (p Permissions) CanPerform(ctx context.Context, sender string) (bool, error)

Jump to

Keyboard shortcuts

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