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 am working to port a Discord bot to Go, and I noticed this potential issue.
While building out my slash command data, I noticed that ApplicationCommand is the only struct that takes {Name/Description}Localizations as a pointer. This makes life a little harder as I have a function building this for me. I found this comment on the localization PR: #1143 (comment)
My question is the same as the one above: Why does ApplicationCommand take a pointer while ApplicationCommandOption and ApplicationCommandOptionChoice doesn't?
My current code with the required workaround (assigning a variable):
Disclaimer: I am very new to Go. I would appreciate the help :)
The text was updated successfully, but these errors were encountered:
leonlarsson
changed the title
Only ApplicationCommand{} takes DescriptionLocalizations as a pointer
Only ApplicationCommand takes DescriptionLocalizations as a pointer
Aug 13, 2024
I am working to port a Discord bot to Go, and I noticed this potential issue.
While building out my slash command data, I noticed that
ApplicationCommand
is the only struct that takes{Name/Description}Localizations
as a pointer. This makes life a little harder as I have a function building this for me. I found this comment on the localization PR: #1143 (comment)My question is the same as the one above: Why does
ApplicationCommand
take a pointer whileApplicationCommandOption
andApplicationCommandOptionChoice
doesn't?My current code with the required workaround (assigning a variable):
Disclaimer: I am very new to Go. I would appreciate the help :)
The text was updated successfully, but these errors were encountered: