Directories
¶
| Path | Synopsis |
|---|---|
|
Package application provides Discord application and team structures.
|
Package application provides Discord application and team structures. |
|
Package auditlog provides structures and constants for Discord's audit log.
|
Package auditlog provides structures and constants for Discord's audit log. |
|
Package cache provides a caching system for discord.go.
|
Package cache provides a caching system for discord.go. |
|
Package cdn builds Discord CDN and media-proxy asset URLs.
|
Package cdn builds Discord CDN and media-proxy asset URLs. |
|
Package channels provides types for interacting with Discord channels.
|
Package channels provides types for interacting with Discord channels. |
|
Package client provides the main entry point for the discord.go library.
|
Package client provides the main entry point for the discord.go library. |
|
Package components provides structures and functions for Discord Message Components.
|
Package components provides structures and functions for Discord Message Components. |
|
docs
|
|
|
examples/code/interaction_server
command
Package main demonstrates a Discord interaction HTTP server using interactions.Server, which verifies the Ed25519 signature and timestamp freshness of every incoming request automatically.
|
Package main demonstrates a Discord interaction HTTP server using interactions.Server, which verifies the Ed25519 signature and timestamp freshness of every incoming request automatically. |
|
examples/code/moderation
command
Package main demonstrates a moderation bot built using the discord.go framework.
|
Package main demonstrates a moderation bot built using the discord.go framework. |
|
examples/code/ping
command
Package main demonstrates a simple ping/pong Discord bot built using the discord.go framework.
|
Package main demonstrates a simple ping/pong Discord bot built using the discord.go framework. |
|
examples/code/slash_commands
command
Package main demonstrates how to create, register, and handle Discord slash commands using the discord.go framework.
|
Package main demonstrates how to create, register, and handle Discord slash commands using the discord.go framework. |
|
examples/code/v2_components
command
discord.go code
|
discord.go code |
|
examples/code/v2_template
command
discord.go code
|
discord.go code |
|
Package events provides structures for Discord gateway events.
|
Package events provides structures for Discord gateway events. |
|
Package gateway provides the Discord gateway API implementation.
|
Package gateway provides the Discord gateway API implementation. |
|
Package guilds provides types and functions for interacting with Discord Guilds.
|
Package guilds provides types and functions for interacting with Discord Guilds. |
|
Package http provides HTTP client utilities for interacting with the Discord API.
|
Package http provides HTTP client utilities for interacting with the Discord API. |
|
Package intents provides constants and methods for Discord intents.
|
Package intents provides constants and methods for Discord intents. |
|
Package interactions provides structures and functions for Discord's Interactions API.
|
Package interactions provides structures and functions for Discord's Interactions API. |
|
internal
|
|
|
backoff
Package backoff provides a reusable exponential backoff calculator with jitter.
|
Package backoff provides a reusable exponential backoff calculator with jitter. |
|
bucket
Package bucket provides route hash calculation for Discord rate limit buckets.
|
Package bucket provides route hash calculation for Discord rate limit buckets. |
|
compression
Package compression provides zlib stream decompression helpers for Gateway payloads.
|
Package compression provides zlib stream decompression helpers for Gateway payloads. |
|
endpoints
Package endpoints provides Discord API endpoint URL construction helpers.
|
Package endpoints provides Discord API endpoint URL construction helpers. |
|
sync
Package sync provides a KeyedMutex that locks per-key.
|
Package sync provides a KeyedMutex that locks per-key. |
|
Package json provides a wrapper around the standard encoding/json package.
|
Package json provides a wrapper around the standard encoding/json package. |
|
Package messages provides types and utilities for Discord messages.
|
Package messages provides types and utilities for Discord messages. |
|
Package oauth2 provides typed helpers for Discord OAuth2 flows.
|
Package oauth2 provides typed helpers for Discord OAuth2 flows. |
|
Package permissions provides utilities for working with Discord permission bitfields.
|
Package permissions provides utilities for working with Discord permission bitfields. |
|
Package ratelimit provides rate limiting functionality for Discord API.
|
Package ratelimit provides rate limiting functionality for Discord API. |
|
Package rest provides a client for interacting with the Discord REST API.
|
Package rest provides a client for interacting with the Discord REST API. |
|
Package roles provides types and functions for interacting with Discord roles.
|
Package roles provides types and functions for interacting with Discord roles. |
|
Package snowflake provides a type and utilities for handling Discord snowflakes.
|
Package snowflake provides a type and utilities for handling Discord snowflakes. |
|
Package storage contains small persistence primitives that can back bot settings, statistics, moderation records, and other application state.
|
Package storage contains small persistence primitives that can back bot settings, statistics, moderation records, and other application state. |
|
Package users provides structures and constants related to Discord users, members, and presences.
|
Package users provides structures and constants related to Discord users, members, and presences. |
|
Package voice provides types and a client for managing Discord voice connections.
|
Package voice provides types and a client for managing Discord voice connections. |
|
Package webhook provides types and functionality for working with Discord webhooks.
|
Package webhook provides types and functionality for working with Discord webhooks. |
Click to show internal directories.
Click to hide internal directories.