discord

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VoiceReceiveActive

func VoiceReceiveActive(vc *discordgo.VoiceConnection) bool

Types

type DiscordChannel

type DiscordChannel struct {
	*channels.BaseChannel
	// contains filtered or unexported fields
}

func NewDiscordChannel

func NewDiscordChannel(
	bc *config.Channel,
	cfg *config.DiscordSettings,
	bus *bus.MessageBus,
) (*DiscordChannel, error)

func (*DiscordChannel) ClearToolFeedbackMessage

func (c *DiscordChannel) ClearToolFeedbackMessage(chatID string)

func (*DiscordChannel) DeleteMessage

func (c *DiscordChannel) DeleteMessage(ctx context.Context, chatID string, messageID string) error

DeleteMessage implements channels.MessageDeleter.

func (*DiscordChannel) DismissToolFeedbackMessage

func (c *DiscordChannel) DismissToolFeedbackMessage(ctx context.Context, chatID string)

func (*DiscordChannel) EditMessage

func (c *DiscordChannel) EditMessage(ctx context.Context, chatID string, messageID string, content string) error

EditMessage implements channels.MessageEditor.

func (*DiscordChannel) FinalizeToolFeedbackMessage

func (c *DiscordChannel) FinalizeToolFeedbackMessage(ctx context.Context, msg bus.OutboundMessage) ([]string, bool)

func (*DiscordChannel) RecordToolFeedbackMessage

func (c *DiscordChannel) RecordToolFeedbackMessage(chatID, messageID, content string)

func (*DiscordChannel) Send

func (c *DiscordChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)

func (*DiscordChannel) SendMedia

func (c *DiscordChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) ([]string, error)

SendMedia implements the channels.MediaSender interface.

func (*DiscordChannel) SendPlaceholder

func (c *DiscordChannel) SendPlaceholder(ctx context.Context, chatID string) (string, error)

SendPlaceholder implements channels.PlaceholderCapable. It sends a placeholder message that will later be edited to the actual response via EditMessage (channels.MessageEditor).

func (*DiscordChannel) Start

func (c *DiscordChannel) Start(ctx context.Context) error

func (*DiscordChannel) StartTyping

func (c *DiscordChannel) StartTyping(ctx context.Context, chatID string) (func(), error)

StartTyping implements channels.TypingCapable. It starts a continuous typing indicator and returns an idempotent stop function.

func (*DiscordChannel) Stop

func (c *DiscordChannel) Stop(ctx context.Context) error

func (*DiscordChannel) VoiceCapabilities

func (c *DiscordChannel) VoiceCapabilities() channels.VoiceCapabilities

VoiceCapabilities returns the voice capabilities of the channel.

Jump to

Keyboard shortcuts

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