Discord REST CLI for coding agents: read guilds, channels and messages, send messages, and call raw routes with a bot token. Built on gaato/discord.
Dependencies
# Supply DISCORD_TOKEN through your environment or secret manager.
moonx gaato/discord-cli@0.1.3 --help
moonx gaato/discord-cli@0.1.3 me
moonx gaato/discord-cli@0.1.3 guilds
moonx gaato/discord-cli@0.1.3 channels 123456789012345678
moonx gaato/discord-cli@0.1.3 messages 234567890123456789 --limit 10
moonx gaato/discord-cli@0.1.3 send 234567890123456789 'Hello'
moonx gaato/discord-cli@0.1.3 api GET /users/@me| Option | Applies to | Meaning |
|---|---|---|
| --token TOKEN | All commands | Overrides DISCORD_TOKEN; prefer the environment to avoid exposing arguments |
| --help, -h | All commands | Usage text |
| --version | Root | Version text |
| --limit N, -n N | messages CHANNEL_ID | Positive 32-bit integer; default 50; paginates beyond 100 |
| --before ID / --after ID | messages CHANNEL_ID | Exclusive cursors; cannot combine |
| --stdin | send CHANNEL_ID [text...] | Read UTF-8 input, overriding text arguments |
| --reply-to ID | send CHANNEL_ID [text...] | Reply to a message |
| --body JSON, -d JSON | api METHOD PATH | JSON body; path relative to /api/v10 |
moon fmt
moon info
moon check --target wasm --deny-warn
moon test --target wasm
moon build --target wasm --release
moon check --target native
moon test --target native
moon build --target native
moon run --target native . -- --help{
"env": { "from_host": ["DISCORD_TOKEN"] },
"net": { "connect": ["discord.com:443"] }
}moonx --experimental-policy discord-policy.json gaato/discord-cli@0.1.3 meInstall
Download zipDiscord REST CLI for coding agents: read guilds, channels and messages, send messages, and call raw routes with a bot token. Built on gaato/discord.
Dependencies