Documentation ¶
Index ¶
- type RonnieD
- func (c *RonnieD) Action(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) AddResult(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) CreateGame(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) GetApplicationCommand() *discordgo.ApplicationCommand
- func (c *RonnieD) GetTab(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) HandleInteractionCreate(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) HandleMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
- func (c *RonnieD) JoinGame(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) ListTabs(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) PayDrink(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) RollBack(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) RonnieActionListTabs(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) RonnieActionPayTab(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) RonnieActionRoll(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) RonnieRoll(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) RonnieRollBack(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) RonnieRolls(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) SessionAssignDrink(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) SessionContinue(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) SessionCreate(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) SessionJoin(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (c *RonnieD) SessionRoll(s *discordgo.Session, i *discordgo.InteractionCreate)
- type RonnieDConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RonnieD ¶
type RonnieD struct {
// contains filtered or unexported fields
}
func NewRonnieD ¶
func NewRonnieD(cfg *RonnieDConfig) (*RonnieD, error)
func (*RonnieD) Action ¶
func (c *RonnieD) Action(s *discordgo.Session, i *discordgo.InteractionCreate)
Action sets up a new message that will have buttons for players to click to roll or pay their tab
func (*RonnieD) AddResult ¶
func (c *RonnieD) AddResult(s *discordgo.Session, i *discordgo.InteractionCreate)
AddResult adds a result to a game TODO: move to the roll command. All rolls should be sent and based on the success response we will send a message
func (*RonnieD) CreateGame ¶
func (c *RonnieD) CreateGame(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) GetApplicationCommand ¶
func (c *RonnieD) GetApplicationCommand() *discordgo.ApplicationCommand
func (*RonnieD) GetTab ¶
func (c *RonnieD) GetTab(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) HandleInteractionCreate ¶
func (c *RonnieD) HandleInteractionCreate(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) HandleMessageCreate ¶
func (c *RonnieD) HandleMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
func (*RonnieD) JoinGame ¶
func (c *RonnieD) JoinGame(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) ListTabs ¶
func (c *RonnieD) ListTabs(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) PayDrink ¶
func (c *RonnieD) PayDrink(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) RollBack ¶
func (c *RonnieD) RollBack(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) RonnieActionListTabs ¶
func (c *RonnieD) RonnieActionListTabs(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) RonnieActionPayTab ¶
func (c *RonnieD) RonnieActionPayTab(s *discordgo.Session, i *discordgo.InteractionCreate)
RonnieActionPayTab handles the action of paying a tab
func (*RonnieD) RonnieActionRoll ¶
func (c *RonnieD) RonnieActionRoll(s *discordgo.Session, i *discordgo.InteractionCreate)
Define a function to handle button clicks or other component interactions
func (*RonnieD) RonnieRoll ¶
func (c *RonnieD) RonnieRoll(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) RonnieRollBack ¶
func (c *RonnieD) RonnieRollBack(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) RonnieRolls ¶
func (c *RonnieD) RonnieRolls(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) SessionAssignDrink ¶
func (c *RonnieD) SessionAssignDrink(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) SessionContinue ¶
func (c *RonnieD) SessionContinue(s *discordgo.Session, i *discordgo.InteractionCreate)
SessionContinue marks your entry as complete and updates the main game message
func (*RonnieD) SessionCreate ¶
func (c *RonnieD) SessionCreate(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) SessionJoin ¶
func (c *RonnieD) SessionJoin(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*RonnieD) SessionRoll ¶
func (c *RonnieD) SessionRoll(s *discordgo.Session, i *discordgo.InteractionCreate)
type RonnieDConfig ¶
type RonnieDConfig struct {
Manager ronnied_actions.Interface
}
Click to show internal directories.
Click to hide internal directories.