Skip to content

feat: serve mode — embeds, components, modals, voice, 20 new actions#8

Merged
DevRohit06 merged 1 commit intomainfrom
feat/serve-enhancements
Mar 22, 2026
Merged

feat: serve mode — embeds, components, modals, voice, 20 new actions#8
DevRohit06 merged 1 commit intomainfrom
feat/serve-enhancements

Conversation

@DevRohit06
Copy link
Copy Markdown
Owner

Summary

The biggest change — expands serve mode from 31 to 52 actions and adds 6 new event types.

New helpers:

  • _build_embed(): JSON-to-discord.Embed conversion
  • _build_view(): JSON-to-components (buttons, select menus)

New events (stdout):

  • voice_state (join/leave/move/mute/deaf)
  • component_interaction (button clicks, select menus)
  • modal_submit (form submissions)
  • disconnected / resumed (reconnection awareness)

New actions (stdin):

  • channel_edit, channel_set_permissions, forum_post
  • thread_archive, thread_rename, thread_add_member, thread_remove_member
  • member_timeout, role_edit
  • reaction_users, poll_results, poll_end
  • webhook_list, webhook_create, webhook_delete
  • event_list, event_create
  • message_bulk_delete, modal_send

Enhanced actions:

  • send and reply now accept embed and components fields
  • send, reply, message_get return jump_url

Listen mode: adds voice state events

Test plan

  • Start discli serve and verify ready event
  • Send {"action": "send", "channel_id": "...", "content": "test", "embed": {"title": "T", "color": "ff0000"}} — verify embed appears
  • Send button component and verify component_interaction event fires on click
  • Join/leave voice channel and verify voice_state events
  • discli listen --events voice — verify voice events stream
  • pytest tests/ -v

🤖 Generated with Claude Code

…, reconnection

Serve mode additions:
- Rich embed support on send/reply actions via embed field
- Message components (buttons, select menus) via components field
- Component interaction and modal submit events
- Modal send action for form responses
- Voice state events (join, leave, move, mute/deaf)
- Disconnect/resume events for reconnection awareness
- 20 new action handlers: channel_edit, channel_set_permissions,
  forum_post, thread_archive/rename/add_member/remove_member,
  member_timeout, role_edit, reaction_users, poll_results/end,
  webhook_list/create/delete, event_list/create, message_bulk_delete,
  modal_send
- jump_url in send/reply/message_get responses

Listen mode: add voice state events

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@DevRohit06 DevRohit06 merged commit 1042e60 into main Mar 22, 2026
@DevRohit06 DevRohit06 deleted the feat/serve-enhancements branch March 22, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant