Skip to content

Event exceptions are not cleared #8420

Description

@Droid00000

Description

When modifying the recurrence_rule field of the guild scheduled event, the response from the PATCH endpoint returns an empty array of guild_scheduled_event_exceptions. However, the corresponding GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE Gateway event still contains the deleted exceptions for the old recurrence rule.

Steps to Reproduce

  1. Create a scheduled event with a recurrence_rule.

  2. Create an exception for the scheduled event that you just created.

  3. Modify the recurrence_rule field of the scheduled event using the REST endpoint, and observe that the guild_scheduled_event_exceptions array is (correctly) empty in the response-data of the endpoint.

  4. Wait for the corresponding GUILD_SCHEDULED_EVENT_UPDATE Gateway event. In the event's inner payload, you'll see that the guild_scheduled_event_exceptions field still contains the deleted exceptions.

Expected Behavior

The inner payload of the GUILD_SCHEDULED_EVENT_UPDATE event should contain an empty array for the guild_scheduled_event_exceptions field when modifying the recurrence_rule field.

Current Behavior

The inner payload of the GUILD_SCHEDULED_EVENT_UPDATE event is not an empty array and still serializes the deleted exceptions.

Screenshots/Videos

N/A

Client and System Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions