Documentation ¶
Index ¶
Constants ¶
View Source
const CloseEmoji = "\U0000274c"
CloseEmoji is the ❌ emoji in Discord, used for the close-wizard button
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page interface { Embed(*Session) *discordgo.MessageEmbed Buttons(*Session) []string FireButton(session *Session, emoji string) }
Page defines what functionality a wizard page should have.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is a wizard session, using embeds to display a menu in Discord and reactions for buttons.
func (*Session) SwitchToPage ¶
SwitchToPage causes this Session to switch to another page, and replace the buttons.
Click to show internal directories.
Click to hide internal directories.