dashboard

package
v0.0.0-...-43647c5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSlashDashboardCommand

func GetSlashDashboardCommand(cmd string) *discordgo.ApplicationCommand

GetSlashDashboardCommand returns the /dashboard slash command definition

func GetSlashTimer

func GetSlashTimer(cmd string) *discordgo.ApplicationCommand

GetSlashTimer will return the discord command for calculating ideal stone set

func HandleDashboardCommand

func HandleDashboardCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

HandleDashboardCommand handles the /dashboard command

func HandleDashboardInteraction

func HandleDashboardInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)

HandleDashboardInteraction handles interactions on the dashboard like refreshing and bookmarks

func HandleTimerCommand

func HandleTimerCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

HandleTimerCommand will handle the /stones command

func HandleTimerInteraction

func HandleTimerInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)

HandleTimerInteraction handles button interactions from timer DMs.

func LaunchIndependentTimers

func LaunchIndependentTimers(s *discordgo.Session)

LaunchIndependentTimers will start all the timers that are active

func UpdateDashboardsForUser

func UpdateDashboardsForUser(s *discordgo.Session, userID string, currentMessageID string)

UpdateDashboardsForUser updates any currently tracked dashboard messages for the user.

Types

type BotTimer

type BotTimer struct {
	ID       string    `json:"id"`
	Reminder time.Time `json:"reminder"`

	Message           string        `json:"message"`
	UserID            string        `json:"user_id"`
	ChannelID         string        `json:"channel_id"`
	MsgID             string        `json:"msg_id"`
	Duration          time.Duration `json:"duration"`
	OriginalChannelID string        `json:"original_channel_id"`
	OriginalMsgID     string        `json:"original_msg_id"`
	Active            bool          `json:"active"`
	// contains filtered or unexported fields
}

BotTimer holds the data for each timer

Jump to

Keyboard shortcuts

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