discord package - github.com/AbdullahMalik17/malikclaw/pkg/channels/discord - Go Packages

discord

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordChannel

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

func NewDiscordChannel

func NewDiscordChannel(cfg config.DiscordConfig, bus *bus.MessageBus) (*DiscordChannel, error)

func (*DiscordChannel) EditMessage

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

EditMessage implements channels.MessageEditor.

func (*DiscordChannel) Send

func (*DiscordChannel) SendMedia

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

Jump to

Keyboard shortcuts

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