whitelist

package
v0.0.0-...-5c9ae66 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	ApproverRole string

	Whitelister interface {
		Whitelist(ctx context.Context, username string) error
	}
}

Command for whitelisting users on a Minecraft server

func (Command) Build

Build the Command for installing

func (Command) HandleCommand

func (c Command) HandleCommand(ctx context.Context, session *discordgo.Session, i *discordgo.InteractionCreate) error

HandleCommand handles the initial event

func (Command) HandleInteractions

func (c Command) HandleInteractions(ctx context.Context, session *discordgo.Session, i *discordgo.InteractionCreate) error

HandleInteractions handles follow-up interactions with the original message

func (Command) MatchInteraction

func (c Command) MatchInteraction(id string) bool

MatchInteraction returns if the Command can handle the interaction

func (Command) Name

func (c Command) Name() string

Name of the Command

Jump to

Keyboard shortcuts

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