RTByte / rtbyte

An open-source modular multipurpose Discord bot built on the incredible Sapphire framework for discord.js
https://rtbyte.xyz/
MIT License
139 stars 14 forks source link

TypeError: Cannot read property 'settings' of undefined #240

Open sentry-io[bot] opened 3 years ago

sentry-io[bot] commented 3 years ago

Sentry Issue: RTBYTE-1J

TypeError: Cannot read property 'settings' of undefined
  File "/root/rtbyte/src/tasks/twitchNotifications.js", line 10, in module.exports.run
    const twitchNotifsEnabled = guild.settings.get('twitch.twitchNotifsEnabled');
rasmusgerdin commented 3 years ago

This issue is due to the task for a Twitch notification check not being deleted if the server is removed.

I've sorted this issue out in the current build with a way for me to fix it manually if it crops up again, but I'm not gonna bother fixing the issue itself as we're currently working on the rewrite.

Logging this here for tracking purposes.