discord

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package discord is the Discord adapter for botbooter. It connects via the Gateway and implements core.Adapter.

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 from a bot token. It returns an error if the token cannot be used to construct a session.

The message-content intent is enabled so handlers receive message text. That intent is privileged and must also be enabled for the application in the Discord developer portal, otherwise Discord delivers empty message content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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