Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when updating a scheduled events location #2349

Merged
merged 2 commits into from Dec 7, 2022

Conversation

Mitmocc
Copy link
Contributor

@Mitmocc Mitmocc commented Dec 7, 2022

Pull Request Etiquette

  • I have checked the PRs for upcoming features/bug fixes.
  • I have read the [contributing guidelines][contributing].

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

There must have been some stealth changes on Discords part when updating a scheduled event, because in the current implementation we get an error for invalid form body when setting the location to a voice or stage channel if we do not provide null for the entity_metadata field. This was redundant before.

This PR also fixes a "bug" when changing the location to an external one without providing a new end time. It did not take into account that the event can already have an end time set even though it was a voice or stage channel event. This might've been a stealth change by Discord as well, because I don't remember it being possible to set the end time on voice or stage channel events. Now you can do that via the API, but not (yet?) via the UI.

@MinnDevelopment MinnDevelopment merged commit 27df292 into discord-jda:master Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants