simmsb / calamity

A library for writing discord bots in haskell
https://hackage.haskell.org/package/calamity
MIT License
109 stars 11 forks source link

No Guild Create events as guilds become available #27

Closed Kaptch closed 3 years ago

Kaptch commented 3 years ago

Upon start guilds that the bot is a part of will start out as unavailable, and stay so because no Guild Create event is received to update their status. I'll investigate further, but it appears that the problem happens somewhere before handleEvent.

simmsb commented 3 years ago

It's always worked for me. Are you using intents?

Kaptch commented 3 years ago

No, I'm using runBotIO without intents. It's rather odd because other events work absolutely fine.

Kaptch commented 3 years ago

Oh, I found the cause of the problem. I'll make a PR in a few minutes.

Kaptch commented 3 years ago

I had a custom activity type, which caused an error during parsing of the event.