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: remove embedfield omitempty #1262

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

A2-NieR
Copy link
Contributor

@A2-NieR A2-NieR commented Oct 22, 2022

Remove omitempty from Name/value since the Discord API requires both to be submitted.

https://discord.com/developers/docs/resources/channel#embed-object
image

Fixes: #726

Remove omitempty from Name/value since the Discord API requires both to be submitted.

Fixes: bwmarrin#726
@A2-NieR
Copy link
Contributor Author

A2-NieR commented Oct 22, 2022

May require additional PRs on other structs against the API to cleanup/remove unnecessary omitempty occurrences.

@FedorLap2006 FedorLap2006 added fix Pull requests and issues related to bug fixes and structural inconsistencies low priority and removed low priority labels Oct 22, 2022
@FedorLap2006 FedorLap2006 added semver ignore Ignore in the release notes and removed fix Pull requests and issues related to bug fixes and structural inconsistencies labels Oct 23, 2022
@FedorLap2006 FedorLap2006 merged commit 8653950 into bwmarrin:master Oct 23, 2022
LWCoder pushed a commit to AtTheTavern/discordgo that referenced this pull request Apr 11, 2023
Remove omitempty from Name/value since the Discord API requires both to be submitted.

Fixes: bwmarrin#726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver ignore Ignore in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP 400 bad request on ChannelMessageSendEmbed with missing value
2 participants