userrolemod

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string) meido.Mod

func NewListUserRolesCommand

func NewListUserRolesCommand(m *UserRoleMod) *meido.ModCommand

func NewMyRoleCommand

func NewMyRoleCommand(m *UserRoleMod) *meido.ModCommand

func NewSetUserRoleCommand

func NewSetUserRoleCommand(m *UserRoleMod) *meido.ModCommand

Types

type UserRoleMod

type UserRoleMod struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*UserRoleMod) AllowDMs

func (m *UserRoleMod) AllowDMs() bool

func (*UserRoleMod) AllowedTypes

func (m *UserRoleMod) AllowedTypes() meido.MessageType

func (*UserRoleMod) Commands

func (m *UserRoleMod) Commands() map[string]*meido.ModCommand

func (*UserRoleMod) Hook

func (m *UserRoleMod) Hook(b *meido.Bot) error

func (*UserRoleMod) Load

func (m *UserRoleMod) Load() error

func (*UserRoleMod) Name

func (m *UserRoleMod) Name() string

func (*UserRoleMod) Passives

func (m *UserRoleMod) Passives() []*meido.ModPassive

func (*UserRoleMod) RegisterCommand

func (m *UserRoleMod) RegisterCommand(cmd *meido.ModCommand)

func (*UserRoleMod) Save

func (m *UserRoleMod) Save() error

type Userrole

type Userrole struct {
	UID     int
	GuildID string `db:"guild_id"`
	RoleID  string `db:"role_id"`
	UserID  string `db:"user_id"`
}

Jump to

Keyboard shortcuts

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