"Invalid Form Body" when using sendPremiumRequired()

Hi all, I'm having a weird issue here. I have monetization and whatnot fully set up on my bot, including a working storefront that's available from my bot's page. I'm testing out things right now, but for some reason whenever I try to run sendPremiumRequired() on a command interaction, it gives me an error saying that the message type is invalid Full error:
DiscordAPIError[50035]: Invalid Form Body
type[BASE_TYPE_CHOICES]: Value must be one of {1, 4, 5, 6, 7, 8, 9, 11}
DiscordAPIError[50035]: Invalid Form Body
type[BASE_TYPE_CHOICES]: Value must be one of {1, 4, 5, 6, 7, 8, 9, 11}
I have everything set up correctly as far as I can tell, it just doesn't work when I try to do this. Am I missing something or are others having this issue? EDIT: version info: d.js: [email protected] node: v18.17.1
5 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
darp
darp7mo ago
well thats discord side error
(GS)
(GS)OP7mo ago
that's what i thought, but i wasn't certain if it was straight from discord or if it was something from the rest package 😔
Ayacks
Ayacks7mo ago
Error to commands for choices
(GS)
(GS)OP7mo ago
this does still happen but i figured out the issue 😅 trying to send an upgrade message to someone who's already subscribed fails and gives this error
Want results from more Discord servers?
Add your server