"entityMetadata" for "GuildScheduledEvent" type is missing "null" when creating an event with "GUILD_VOICE"
See original GitHub issueWhich package is this bug report for?
discord.js
Issue description
The null
type is missing, causing discord.js
to crash my application.
Code sample
discordClient.on('guildScheduledEventCreate', (event) => {
console.log('=======================================');
console.log('creator', event.creator);
console.log('channel', event.channel);
console.log('name', event.name);
console.log('description', event.description);
console.log('scheduledStartAt', event.scheduledStartAt);
console.log('scheduledEndAt', event.scheduledEndAt);
console.log('status', event.status);
console.log('entityType', event.entityType);
console.log('entityMetadata', event.entityMetadata);
console.log('=======================================');
});
Package version
13.6.0
Node.js version
16.13.2
Operating system
No response
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildBans, GuildEmojisAndStickers, GuildInvites, GuildVoiceStates, GuildPresences, GuildMessages, GuildMessageReactions, DirectMessages, GuildScheduledEvents
I have tested this issue on a development release
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Could not resolve channel to a guild voice ... - Stack Overflow
I did some research, after the update to discordjs v13, they changed the channel type when you run the .create() method, if you...
Read more >All modules
AutoModerationRuleEventType ... GuildScheduledEventEntityMetadata · GuildScheduledEventPrivacyLevel ... Missing · Companion · Null.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s not discord.js crashing, that’s your application crashing
Thanks, just edited