Documentation
¶
Index ¶
- func VoiceReceiveActive(vc *discordgo.VoiceConnection) bool
- type DiscordChannel
- func (c *DiscordChannel) ClearToolFeedbackMessage(chatID string)
- func (c *DiscordChannel) DeleteMessage(ctx context.Context, chatID string, messageID string) error
- func (c *DiscordChannel) DismissToolFeedbackMessage(ctx context.Context, chatID string)
- func (c *DiscordChannel) EditMessage(ctx context.Context, chatID string, messageID string, content string) error
- func (c *DiscordChannel) FinalizeToolFeedbackMessage(ctx context.Context, msg bus.OutboundMessage) ([]string, bool)
- func (c *DiscordChannel) RecordToolFeedbackMessage(chatID, messageID, content string)
- func (c *DiscordChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)
- func (c *DiscordChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) ([]string, error)
- func (c *DiscordChannel) SendPlaceholder(ctx context.Context, chatID string) (string, error)
- func (c *DiscordChannel) Start(ctx context.Context) error
- func (c *DiscordChannel) StartTyping(ctx context.Context, chatID string) (func(), error)
- func (c *DiscordChannel) Stop(ctx context.Context) error
- func (c *DiscordChannel) VoiceCapabilities() channels.VoiceCapabilities
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 ¶
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 ¶
SendPlaceholder implements channels.PlaceholderCapable. It sends a placeholder message that will later be edited to the actual response via EditMessage (channels.MessageEditor).
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) VoiceCapabilities ¶
func (c *DiscordChannel) VoiceCapabilities() channels.VoiceCapabilities
VoiceCapabilities returns the voice capabilities of the channel.
Click to show internal directories.
Click to hide internal directories.