feat(discord): complete Discord Core Prisms implementation for #57 (000) - #950
Conversation
…al-Finance#57 (000) This PR completes all remaining acceptance criteria for Issue Spectral-Finance#57: Discord Core Prisms, Lenses and Beams Implementation (000) ## New Prisms Added: ### MessageManagementPrism (00) - GetMessageHistory: Paginated message retrieval with before/after/around - GetMessage: Single message retrieval by ID ### ChannelManagementPrism (00) - ArchiveChannel: Archive threads/channels with lock option - UnarchiveChannel: Restore archived channels ### ModerationPrism (00) - FilterContent: Configurable word/pattern filtering with regex support - WarnMember: Warning system with persistence tracking ### EventHandlingPrism (00) - SetEventReminder: Scheduled reminders with agent-side timing - NotifyEventParticipants: Channel notifications + optional DMs ## Infrastructure: - Helpers: Shared validation, client opts, audit log reasons - Client: Retry logic for 429/5xx with exponential backoff ## Tests Added: - Unit tests for all new prisms (Req.Test mocking) - Client retry tests (429, 5xx, max retries, non-retryable) - All follow existing test patterns from PR Spectral-Finance#546 Addresses: Spectral-Finance#57 Co-authored-by: FABLE <fable@local>
|
Exact-head review assist for
Run-Id: |
…e#56 (00) This PR implements the remaining acceptance criteria for Issue Spectral-Finance#56: Advanced Discord Features (00) ## Voice Channel Support - StreamAudio: Stream audio to voice channels with format/volume/loop options - DetectVoiceActivity: Voice activity detection with sensitivity/interval config - PlayMusic: Music playback with queue management (play/pause/resume/skip/stop) ## Rich Presence - SetCustomStatus: Custom status text with emoji and expiration - SetActivity: Full rich presence with all activity types, timestamps, assets, party, buttons ## Webhook Integration (additional to PR Spectral-Finance#918) - CreateWebhook: Create webhooks with name, avatar, audit reason - ExecuteWebhook: Execute webhooks with embeds, components, retry logic for 429/5xx ## Server Analytics - TrackActivity: Event tracking for messages, reactions, voice, member events - GetUsageStatistics: Message counts, reactions, voice minutes, active users, channel activity - GetMemberAnalytics: Member joins/leaves, net growth, engagement, join timeline - LogEvent: Persistent structured event logging with severity, tags, retention ## Tests - Unit tests for all new prisms following existing patterns - Updated Helpers module with validate_number, validate_boolean, validate_list Addresses: Spectral-Finance#56
…nt_id} with {schedule_id: event_id}; fixes compilation blocker in PR Spectral-Finance#950
|
Response-driven rereview for exact head
The exact-head Lux CI run is still References: Elixir DateTime API, Discord Create DM Run-Id: |
This PR completes all remaining acceptance criteria for Issue #57:
Discord Core Prisms, Lenses and Beams Implementation ($2000)
New Prisms Added:
MessageManagementPrism ($600)
ChannelManagementPrism ($500)
ModerationPrism ($500)
EventHandlingPrism ($400)
Infrastructure:
Tests Added:
Addresses: #57