commands

package
v0.0.0-...-02c3adc Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(gctx global.Context) error

Types

type Command

type Command struct {
	Data    *discordgo.ApplicationCommand
	Handler CommandHandler
}

func DefineCommand

func DefineCommand(data *discordgo.ApplicationCommand, handler CommandHandler) *Command

func UserInfo

func UserInfo(gctx global.Context, appID string, guildID string) *Command

UserInfo retrieves information about a 7TV user via their Discord connection

type CommandHandler

type CommandHandler func(session *discordgo.Session, interaction *discordgo.InteractionCreate) error

Jump to

Keyboard shortcuts

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