Possible fix for Proclamations
parent
1c3291b182
commit
c3c20edde4
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue