feat: serve mode — embeds, components, modals, voice, 20 new actions#8
Merged
DevRohit06 merged 1 commit intomainfrom Mar 22, 2026
Merged
feat: serve mode — embeds, components, modals, voice, 20 new actions#8DevRohit06 merged 1 commit intomainfrom
DevRohit06 merged 1 commit intomainfrom
Conversation
…, 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_postthread_archive,thread_rename,thread_add_member,thread_remove_membermember_timeout,role_editreaction_users,poll_results,poll_endwebhook_list,webhook_create,webhook_deleteevent_list,event_createmessage_bulk_delete,modal_sendEnhanced actions:
sendandreplynow acceptembedandcomponentsfieldssend,reply,message_getreturnjump_urlListen mode: adds voice state events
Test plan
discli serveand verifyreadyevent{"action": "send", "channel_id": "...", "content": "test", "embed": {"title": "T", "color": "ff0000"}}— verify embed appearscomponent_interactionevent fires on clickvoice_stateeventsdiscli listen --events voice— verify voice events streampytest tests/ -v🤖 Generated with Claude Code