(GS)
(GS)
DIAdiscord.js - Imagine an app
Created by (GS) on 5/15/2024 in #djs-questions
"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
6 replies