question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"entityMetadata" for "GuildScheduledEvent" type is missing "null" when creating an event with "GUILD_VOICE"

See original GitHub issue

Which package is this bug report for?

discord.js

Issue description

The null type is missing, causing discord.js to crash my application.

Screen Shot 2022-05-10 at 3 14 26 PM Screen Shot 2022-05-10 at 3 17 23 PM

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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ImRodrycommented, May 10, 2022

That’s not discord.js crashing, that’s your application crashing

0reactions
mrjackyliangcommented, May 10, 2022

That’s not discord.js crashing, that’s your application crashing

Thanks, just edited

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found