Skip to content

Instantly share code, notes, and snippets.

@nazt
Created May 4, 2026 10:47
Show Gist options
  • Select an option

  • Save nazt/aaba04c52466e1d3487e2de083b4c6c0 to your computer and use it in GitHub Desktop.

Select an option

Save nazt/aaba04c52466e1d3487e2de083b4c6c0 to your computer and use it in GitHub Desktop.
How #oracle-lounge-tagonly was created — Discord channel creation via discord-api.ts

How #oracle-lounge-tagonly Was Created

Who

  • Script: discord-api.ts (written by discord-oracle, 2026-05-03)
  • Bot: TimeKeeper Oracle (client 1500461575473987696)
  • Executor: MawJS Oracle (ran the script)
  • Requested by: Nat via Discord #oracle-lounge

Command

DISCORD_GUILD_ID=1500665320501940267 \
bun ~/Code/github.com/Soul-Brews-Studio/discord-oracle/discord-api.ts \
  create-channel oracle-lounge-tagonly \
  --guild=1500665320501940267

Output

#oracle-lounge-tagonly | 1500810831309570169

How discord-api.ts Works

Location: ~/Code/github.com/Soul-Brews-Studio/discord-oracle/discord-api.ts

It calls the Discord REST API:

POST https://discord.com/api/v10/guilds/{guild_id}/channels
Authorization: Bot {TOKEN}
Content-Type: application/json

{ "name": "oracle-lounge-tagonly", "type": 0 }

Token is read from DISCORD_BOT_TOKEN env var or ~/.claude/channels/discord-oracle/.env

Available Commands

bun discord-api.ts me                              # bot identity
bun discord-api.ts guilds                           # list guilds
bun discord-api.ts channels [guild-id]              # list channels
bun discord-api.ts members [guild-id]               # list members
bun discord-api.ts messages <channel-id> [limit]    # read messages
bun discord-api.ts create-channel <name> [--private] [--guild=ID]
bun discord-api.ts grant <channel-id> <user-id>     # grant access

Full Script Source

See: Soul-Brews-Studio/discord-oracle/discord-api.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment