Skip to main content

Module rest

Module rest 

Source
Expand description

Discord REST API client โ€” message send only.

Rate limiting: Discord returns X-RateLimit-* headers. We log 429s and return an error; the caller (gateway loop) logs a warning. Full rate-limit header handling is deferred to Phase 2.

Constantsยง

DISCORD_API ๐Ÿ”’

Functionsยง

send_message
POST /channels/{channel_id}/messages
to_discord_embed ๐Ÿ”’
to_discord_field ๐Ÿ”’