discord

package
v0.0.0-...-248acc2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Ctx    context.RedditSpyCtx
	Client *discordgo.Session
	Bot    *redditDiscordBot.RedditDiscordBot
}

func (*Client) RegisterCommands

func (c *Client) RegisterCommands() error

func (*Client) SendMessage

func (c *Client) SendMessage(ctx context.Ctx, result *evaluator.MatchingEvaluationResult) error

type CommandConfig

type CommandConfig struct {
	Command *discordgo.ApplicationCommand
	Handler func(s *discordgo.Session, i *discordgo.InteractionCreate)
}

Jump to

Keyboard shortcuts

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