Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WaitTimer ¶
type WaitTimer struct {
// contains filtered or unexported fields
}
WaitTimer is used to call a given method once the wait time has been reached.
func NewWaitTimer ¶
func NewWaitTimer(s *discordgo.Session, i *discordgo.InteractionCreate, waitTime time.Duration, msgFunc func(*discordgo.Session, *discordgo.InteractionCreate, string) error, methodToCall func(*discordgo.Session, *discordgo.InteractionCreate)) *WaitTimer
NewWaitTimer creates a waitTimer with the given configuration information.
Click to show internal directories.
Click to hide internal directories.