-
Notifications
You must be signed in to change notification settings - Fork 919
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
discordgo: fix button message component emoji errors (#1598)
* discordgo: fix button message component emoji errors Change discordgo.Button.Emoji to *discordgo.ComponentEmoji and include the omitempty tag. Discord no longer allows the `emojis` field in button objects to be null, and instead require it be absent. This commit adds the "omitempty" tag to the Emoji field, and changes the value to a pointer. See also the suggested fix from the Discord Gophers server: https://discord.com/channels/118456055842734083/155361364909621248/1192299819012722748 * fixup! discordgo: fix button message component emoji errors
- Loading branch information
Showing
5 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters