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(Webhooks): Convert allowed_mentions to hash before execute #82

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

swarley
Copy link
Member

@swarley swarley commented Sep 17, 2021

Summary

Fixup bad logic that caused 400s when using an allowed mentions builder in webhooks.

Fixed

Webhooks::Builder#to_json_hash - Call to_hash on allowed mentions
Webhooks::Builder#to_multipart_hash - Call to_hash on allowed mentions

Closes #81

@swarley swarley merged commit 7956821 into shardlab:main Sep 17, 2021
@swarley swarley deleted the fix/webhook-allowed-mentions branch September 17, 2021 01:50
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.

allowed_mentions in webhook client results in Bad Request
1 participant