Possible fix for Proclamations

merge-requests/25/head
Hiroyuki 2021-03-24 21:10:26 -04:00
parent 1c3291b182
commit c3c20edde4
No known key found for this signature in database
GPG Key ID: C15AC26538975A24
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export default class MessageReactionAdd extends Event {
const proc = await this.client.db.Proclamation.findOne({ msg: message.id, processed: false }); 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'; let type: 'yea' | 'nay' | 'present';
if (emoji.id === '578750988907970567') type = 'yea'; if (emoji.id === '578750988907970567') type = 'yea';