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
Try to create an Scheduled Discord Event with an entity type of external dont set a channel because it's external and get invalid from error from the discord api
ERROR: An unhandled promise rejection occurred.
shardId: 0
message: "Invalid Form Body\nentity_metadata.location[BASE_TYPE_REQUIRED]: This field is required"
code: 50035
statusCode: 400
method: "POST"
url: "https://discord.com/api/v10/guilds/1223361272998002758/scheduled-events"
stack: "DiscordAPIError[50035]: Invalid Form Body\nentity_metadata.location[BASE_TYPE_REQUIRED]: This field is required
Code sample
publicasyncexecute(intr: ChatInputCommandInteraction): Promise<void>{//create an example Dateletdate=newDate();date.setFullYear(2022);//create an eventintr.guild.scheduledEvents.create({name: 'example',scheduledStartTime: date,privacyLevel: GuildScheduledEventPrivacyLevel.GuildOnly,entityType: GuildScheduledEventEntityType.External,});}
Which package is this bug report for?
discord.js
Issue description
Try to create an Scheduled Discord Event with an entity type of external dont set a channel because it's external and get invalid from error from the discord api
ERROR: An unhandled promise rejection occurred.
shardId: 0
message: "Invalid Form Body\nentity_metadata.location[BASE_TYPE_REQUIRED]: This field is required"
code: 50035
statusCode: 400
method: "POST"
url: "https://discord.com/api/v10/guilds/1223361272998002758/scheduled-events"
stack: "DiscordAPIError[50035]: Invalid Form Body\nentity_metadata.location[BASE_TYPE_REQUIRED]: This field is required
Code sample
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
Channel, Message, Reaction
Which gateway intents are you subscribing to?
Guilds, GuildMessages, GuildMessageReactions, DirectMessages, DirectMessageReactions
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: