module.exports = {
  name: 'On Top.gg Vote',
  isEvent: true,

  fields: ['Temp Variable Name (Stores users id)', 'Temp Variable Name (Stores vote object)'],

  mod (DBM) {
    DBM.Events.onTopggVote = function (user, vote) {
      const { Bot, Actions } = DBM
      if (!Bot.$evts['On Top.gg Vote']) return
      for (const event of Bot.$evts['On Top.gg Vote']) {
        const temp = {}
        if (event.temp) temp[event.temp] = user
        if (event.temp2) temp[event.temp2] = vote
        const servers = Bot.bot.guilds.cache.array()
        for (const server of servers) {
          if (server) {
            Actions.invokeEvent(event, server, temp)
          }
        }
      };
    }
  }
}

@@ -498,132 +498,8 @@
 te%0D%0A
-        const servers = Bot.bot.guilds.cache.array()%0D%0A        for (const server of servers) %7B%0D%0A          if (server) %7B%0D%0A    
     
@@ -533,14 +533,12 @@
 nt, 
-server
+null
 , te
@@ -546,32 +546,8 @@
 p)%0D%0A
-          %7D%0D%0A        %7D%0D%0A
     

Update on_topgg_vote_EVT.js (#644)