discord

package
v0.0.0-...-8314da0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token string `env:"TOKEN,notEmpty"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(config *Config) (*Service, error)

func (*Service) AddMessageCreateHandler

func (s *Service) AddMessageCreateHandler(handler usecase.MessageCreateHandler)

func (*Service) ExecuteWebhook

func (s *Service) ExecuteWebhook(ctx context.Context, id, token string, params *discordgo.WebhookParams) error

func (*Service) FindChannel

func (s *Service) FindChannel(ctx context.Context, id string) (*discordgo.Channel, error)

func (*Service) FindGuild

func (s *Service) FindGuild(ctx context.Context, id string) (*discordgo.Guild, error)

func (*Service) FindGuildMember

func (s *Service) FindGuildMember(ctx context.Context, guildID string, userID string) (*discordgo.Member, error)

Jump to

Keyboard shortcuts

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