meta

package
v0.0.0-...-e364c34 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If(b bool, t, f interface{}) interface{}

If tries to emulate a ternary operation as well as possible

func Init

func Init(bot *bot.Bot)

Init ...

Types

type Bot

type Bot struct {
	*bot.Bot

	Uptime time.Time
	// contains filtered or unexported fields
}

Bot ...

func (*Bot) WaitForSelect

func (bot *Bot) WaitForSelect(ctx *bcr.Context, msgID discord.MessageID, customID string, dur time.Duration) (resp SelectResponse, timeout bool)

WaitForSelect ...

type SelectResponse

type SelectResponse struct {
	ID     discord.InteractionID
	Token  string
	Values []string
}

SelectResponse ...

Jump to

Keyboard shortcuts

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