Documentation
¶
Index ¶
- func GetSlashDashboardCommand(cmd string) *discordgo.ApplicationCommand
- func GetSlashTimer(cmd string) *discordgo.ApplicationCommand
- func HandleDashboardCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
- func HandleDashboardInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
- func HandleTimerCommand(s *discordgo.Session, i *discordgo.InteractionCreate)
- func HandleTimerInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
- func LaunchIndependentTimers(s *discordgo.Session)
- func UpdateDashboardsForUser(s *discordgo.Session, userID string, currentMessageID string)
- type BotTimer
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 ¶
LaunchIndependentTimers will start all the timers that are active
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
Click to show internal directories.
Click to hide internal directories.