title: Suggestion Command Using Discord Buttons Discord.JS
body: <p>So I am trying to make a suggestion command using discord buttons in Discord.JS. When I run the command the embed and the buttons send but whenever I click one of the buttons whether it be <strong>Upvote</strong>, <strong>Maybe</strong>, or <strong>Downvote</strong> it edits the embed, but it never updates the number. I've tried <code>upvote_number ++</code> and <code>upvote_number + 1</code> but it doesn't work. It would be awesome if somebody could help me with this. Thank you.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const Discord = require('discord.js');
  const disbut = require('discord-buttons');
  const { MessageActionRow, MessageButton } = require("discord-buttons");
  const { Color, Prefix } = require("../../config.js");
    const { MessageEmbed } = require("discord.js");
  
    const disbutpages = require("discord-embeds-pages-buttons")
    const db = require('quick.db');
  
  
  module.exports = {
    name: "suggest",
    aliases: [],
    description: "Suggestion Command",
    usage: "^suggest &lt;suggestion&gt;",
    run: async(client, message, args) =&gt; {
  
            const SayMessage = message.content.slice(8).trim();
      
      let upvote_number = 0
      let downvote_number = 0
      let maybe_number = 0
      
      const embed = new Discord.MessageEmbed()
      .setAuthor("Suggestion from: " + message.author.tag, message.author.displayAvatarURL({dynamic: true}))
      .setThumbnail(message.author.displayAvatarURL({dynamic: true}))
      .setDescription(SayMessage)
      .addField(`Votes`, `Upvote: **${upvote_number}**
      Downvote: **${downvote_number}**`) 
      
      
      let upvotebutton = new MessageButton()
      .setLabel(`Upvote`)
      .setID(`upvote`)
      .setEmoji(`⬆️`)
      .setStyle("green")
          
      let maybebutton = new MessageButton()
      .setLabel(`Maybe`)
      .setID(`maybe`)
      .setEmoji(``)
      .setStyle("blurple")
      
      let downvotebutton = new MessageButton()
      .setLabel(`Downvote`)
      .setID(`downvote`)
      .setEmoji(`⬇️`)
      .setStyle("red")
                
          
      let row = new MessageActionRow()
      .addComponents(upvotebutton, maybebutton, downvotebutton)
      
  
      const MESSAGE = await message.channel.send(embed, { components: [row] })
  
      const filter = ( button ) =&gt; button.clicker.user.id === message.author.id
      const collector = MESSAGE.createButtonCollector(filter, { time : 120000 });
  
      collector.on('collect', async (b) =&gt; {
  
        
          if(b.id == "upvote") {
            
  await upvote_number + 1
            
             await MESSAGE.edit(embed, { components: [row] });
              await b.reply.defer()
  
          }
        
          if(b.id == "downvote") {
  downvote_number + 1
              MESSAGE.edit(embed, { components: [row] });
              await b.reply.defer()
  
          }
  
          if(b.id == "maybe") {
              maybe_number + 1
              MESSAGE.edit(embed, { components: [row] });
              await b.reply.defer()
  
          }
  
      })
  
      collector.on('end', (b) =&gt; {
      })
      
      }
    };</code></pre>
  </div>
  </div>
  </p>