Skip to content

Conversation

@sojinmm
Copy link
Contributor

@sojinmm sojinmm commented Apr 2, 2025

Add Discord Scheduled Events Management

This PR introduces comprehensive support for managing Discord scheduled events, including creation, modification, and event reminders. The implementation follows Discord's API v10 specifications and maintains consistency with existing Discord-related prisms.

Key Features:

  • Create scheduled events (voice, stage, external)
  • Edit existing events with full parameter support
  • Send formatted event reminders with rich embeds
  • Comprehensive error handling and validation
  • Thorough test coverage for all scenarios

Technical Implementation:

  • Consistent error handling pattern across all event-related prisms
  • Structured request/response format following Discord API standards
  • Clean separation of concerns (validation, API calls, response formatting)
  • Improved test coverage with detailed assertions and mock responses

Example Usage:

# Create a scheduled event
CreateScheduledEvent.handler(%{
  guild_id: "123456789",
  name: "Community Game Night",
  description: "Join us for some fun!",
  scheduled_start_time: "2024-04-01T19:00:00Z",
  entity_type: "voice",
  channel_id: "987654321"
}, context)

# Send event reminder
SendEventReminder.handler(%{
  guild_id: "123456789",
  event_id: "987654321",
  channel_id: "456789012"
}, context)

Future Improvements:

  • Add support for recurring events
  • Implement automatic reminder scheduling
  • Add participant management functionality
  • Enhance event analytics and tracking

@coveralls
Copy link

Pull Request Test Coverage Report for Build ff0072a57351a5132422bc8ba681c3983ec29f83-PR-225

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 4.746%

Totals Coverage Status
Change from base Build 1bba7bab342296e80b6f6d384b1931fe1dcfe390: -0.05%
Covered Lines: 124
Relevant Lines: 2613

💛 - Coveralls

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.

2 participants