You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue with the DiscordGo package (v0.27.1) related to using buttons in messages. Despite not having any emojis in the buttons, I am consistently receiving an HTTP 400 Bad Request error.
This is one example of my message &discordgo.MessageSend{ Content: content, Components: []discordgo.MessageComponent{ discordgo.ActionsRow{ Components: []discordgo.MessageComponent{ discordgo.Button{ Label: "something", Style: discordgo.PrimaryButton, CustomID: "something", }, discordgo.Button{ Label: "something else", Style: discordgo.SecondaryButton, CustomID: "something_else"", }, }, }, }, }
Here is an example of such error message: HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"components": {"0": {"components": {"1": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}}}}}}
This error occurs even when emojis are not used in the button components. Here's a brief overview of the scenario:
Using DiscordGo to send messages with buttons.
No emojis are included in the button components.
The error appears upon message sending.
I would appreciate any insights or solutions to this problem. Could this be an issue with the library handling button components without emojis, or am I missing a step in the implementation?
Thank you for your assistance.
Best regards,
Rosa17a
The text was updated successfully, but these errors were encountered:
This is a known problem and has been resolved in f70a015. However, since it's not tagged yet, you'd have to use the @master version (which can be retrieved by running go get -u github.com/bwmarrin/discordgo@master)
Hello DiscordGo maintainers,
I've encountered an issue with the DiscordGo package (v0.27.1) related to using buttons in messages. Despite not having any emojis in the buttons, I am consistently receiving an HTTP 400 Bad Request error.
This is one example of my message
&discordgo.MessageSend{ Content: content, Components: []discordgo.MessageComponent{ discordgo.ActionsRow{ Components: []discordgo.MessageComponent{ discordgo.Button{ Label: "something", Style: discordgo.PrimaryButton, CustomID: "something", }, discordgo.Button{ Label: "something else", Style: discordgo.SecondaryButton, CustomID: "something_else"", }, }, }, }, }
Here is an example of such error message:
HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"components": {"0": {"components": {"1": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}}}}}}
This error occurs even when emojis are not used in the button components. Here's a brief overview of the scenario:
I would appreciate any insights or solutions to this problem. Could this be an issue with the library handling button components without emojis, or am I missing a step in the implementation?
Thank you for your assistance.
Best regards,
Rosa17a
The text was updated successfully, but these errors were encountered: