qeled / discordie

Predictable JavaScript abstractions for Discord API.
https://qeled.github.io/discordie/
BSD 2-Clause "Simplified" License
190 stars 45 forks source link

Guild not always included with guild member events #49

Closed ttftw closed 8 years ago

ttftw commented 8 years ago

I'm having to use if (!guild) return because I can't count on guild being included...I feel this is a bug. Guild should always be included with the event? I have this same issue with adding members, too.

bot.Dispatcher.on('GUILD_MEMBER_REMOVE', ({ guild, user }) => {
  if (!guild) return;