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

Update commands fix #36

Merged
merged 3 commits into from
Mar 16, 2021
Merged

Update commands fix #36

merged 3 commits into from
Mar 16, 2021

Conversation

Ionaru
Copy link
Contributor

@Ionaru Ionaru commented Mar 16, 2021

This fixes a situation where one command out of many is updated and caused the other commands to disappear from Discord.

The root cause was that only the updated command is sent with a PUT requests and overwrites the commands resource completely, different from what a PATCH request does (modifies a resource).

https://en.wikipedia.org/wiki/Patch_verb#:~:text=The%20main%20difference%20between%20the,instructions%20to%20modify%20the%20resource.

@Snazzah Snazzah merged commit 905c2be into Snazzah:master Mar 16, 2021
@Snazzah Snazzah added the type: bug Something isn't working label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants