Documentation
¶
Overview ¶
Package discord is the gateway's Discord channel adapter. It uses the maintained bwmarrin/discordgo gateway client (a real-time websocket, unlike Telegram's long-poll) — the SDK is isolated here so it can't grow a second implementation elsewhere (guarded by TestVendorSDKsOnlyInTheirAdapters). The user creates their own bot in the Discord developer portal, enables the Message Content intent, and puts the token in the global .env as DISCORD_BOT_TOKEN.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is a Discord bot connection.
func New ¶
New builds a Discord channel for the given bot token. It requests the message intents (Message Content is privileged — the user must enable it on the bot).
func (*Channel) Send ¶
Send posts a reply to a channel, splitting it with the shared chunker to respect Discord's per-message length limit.