diff --git a/src/events/messageReactionAdd.ts b/src/events/messageReactionAdd.ts index 5beeb44..158029b 100644 --- a/src/events/messageReactionAdd.ts +++ b/src/events/messageReactionAdd.ts @@ -32,7 +32,7 @@ export default class MessageReactionAdd extends Event { const proc = await this.client.db.Proclamation.findOne({ msg: message.id, processed: false }); - if (!proc?.votedDirectors.includes(reactor.id)) { + if (proc && !proc?.votedDirectors.includes(reactor.id)) { let type: 'yea' | 'nay' | 'present'; if (emoji.id === '578750988907970567') type = 'yea';