Documentation ¶
Index ¶
- type ActionParser
- func (m *ActionParser) CheckPermissionsForActionSets(actionSets map[string]actions.ActionSet, userID string, guildID string, ...) error
- func (m *ActionParser) CreateActionsForMessage(ctx context.Context, actionSets map[string]actions.ActionSet, ...) error
- func (m *ActionParser) DeleteActionsForMessage(messageID string) error
- func (m *ActionParser) DerivePermissionsForActions(userID string, guildID string, channelID string) (actions.ActionDerivedPermissions, error)
- func (m *ActionParser) ParseMessageComponents(data []actions.ActionRowWithActions) ([]discordgo.MessageComponent, error)
- func (m *ActionParser) RetrieveActionsForMessage(ctx context.Context, messageID string) (map[string]actions.ActionSet, error)
- func (m *ActionParser) UnparseMessageComponents(data []discordgo.MessageComponent) ([]actions.ActionRowWithActions, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionParser ¶
type ActionParser struct {
// contains filtered or unexported fields
}
func New ¶
func New(accessManager *access.AccessManager, pg *postgres.PostgresStore, state *discordgo.State) *ActionParser
func (*ActionParser) CheckPermissionsForActionSets ¶
func (*ActionParser) CreateActionsForMessage ¶
func (*ActionParser) DeleteActionsForMessage ¶
func (m *ActionParser) DeleteActionsForMessage(messageID string) error
func (*ActionParser) DerivePermissionsForActions ¶
func (m *ActionParser) DerivePermissionsForActions(userID string, guildID string, channelID string) (actions.ActionDerivedPermissions, error)
func (*ActionParser) ParseMessageComponents ¶
func (m *ActionParser) ParseMessageComponents(data []actions.ActionRowWithActions) ([]discordgo.MessageComponent, error)
func (*ActionParser) RetrieveActionsForMessage ¶
func (*ActionParser) UnparseMessageComponents ¶
func (m *ActionParser) UnparseMessageComponents(data []discordgo.MessageComponent) ([]actions.ActionRowWithActions, error)
Click to show internal directories.
Click to hide internal directories.