discord

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package discord is the Discord adapter for botbooter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(token string) (*core.Bot, error)

New creates a Discord bot that connects via the Gateway.

func RawEvent added in v0.2.0

func RawEvent(m *core.Message) (*discordgo.MessageCreate, bool)

RawEvent returns the raw Discord message-create event carried on m, reporting whether m originated from Discord.

func Session added in v0.2.0

func Session(b *core.Bot) *discordgo.Session

Session returns the discordgo gateway session backing b, or nil if b is not a Discord bot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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