Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( NewService, wire.Bind(new(Usecase), new(*Service)), )
Functions ¶
This section is empty.
Types ¶
type DiscordClient ¶
type DiscordClient interface { AddMessageCreateHandler(handler MessageCreateHandler) ExecuteWebhook(ctx context.Context, id, token string, params *discordgo.WebhookParams) error FindGuild(ctx context.Context, id string) (*discordgo.Guild, error) FindChannel(ctx context.Context, id string) (*discordgo.Channel, error) FindGuildMember(ctx context.Context, guildID string, userID string) (*discordgo.Member, error) }
type MessageCreateHandler ¶
type MessageCreateHandler func(event *discordgo.MessageCreate) error
type MessageStore ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ctx context.Context, config *Config, store MessageStore, discord DiscordClient) *Service
func (*Service) DetectMessageTopics ¶
Click to show internal directories.
Click to hide internal directories.