fedfx

package
v0.0.0-...-6b7fec4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(fx.Invoke(New))

Functions

func New

func New(p Params) error

Types

type Config

type Config struct {
	Guilds map[discordfx.Guild]GuildConfig `yaml:"guilds"`
}

type DeletedMessageLogConfig

type DeletedMessageLogConfig struct {
	Channel       discordfx.Channel `yaml:"channel"`
	AllowDeletion bool              `yaml:"allowDeletion"`
}

type GuildConfig

type GuildConfig struct {
	SpotifyLogChannel discordfx.Channel       `yaml:"spotifyLogChannel"`
	DeletedMessageLog DeletedMessageLogConfig `yaml:"deletedMessageLog"`
}

type Params

type Params struct {
	fx.In
	Session      *discordgo.Session
	Log          *zap.Logger
	Config       config.Provider
	MessageStore messagefx.Store
}

Jump to

Keyboard shortcuts

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