parser

package
v0.0.0-...-9b2646f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 (m *ActionParser) CheckPermissionsForActionSets(actionSets map[string]actions.ActionSet, userID string, guildID string, channelID string) error

func (*ActionParser) CreateActionsForMessage

func (m *ActionParser) CreateActionsForMessage(ctx context.Context, actionSets map[string]actions.ActionSet, derivedPerms actions.ActionDerivedPermissions, messageID string, ephemeral bool) error

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 (m *ActionParser) RetrieveActionsForMessage(ctx context.Context, messageID string) (map[string]actions.ActionSet, error)

func (*ActionParser) UnparseMessageComponents

func (m *ActionParser) UnparseMessageComponents(data []discordgo.MessageComponent) ([]actions.ActionRowWithActions, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL