title: How to get a discord bot to pull a random cell from a Google Sheet every time a command is used?
body: <p>I'm using Autocode so I have the Google API linked to my discord bot. I have figured out how to get the bot to retrieve a distinct cell, but i want it to pull a random one each time the command is used.</p>
  <p>For example one user wants to throw something (a list of words in a google sheet) at another user. User1 would type &quot;/throw @User2&quot; and it would return a message in discord that says &quot;User1 threw <em>frogs</em> at @User2&quot; or something similar.</p>
  <p>Below is my current code, but I know it is not correct (especially the line with description)</p>
  <pre><code>module.exports = async (event, context) =&gt; {
    if (event.content === `${process.env.prefix}throw` || event.content === `${process.env.prefix}throwing`) {
      let text = event.content.split(' ');//splits every word in your message
      let database = await lib.googlesheets.query['@0.3.0'].distinct({
        range: `throw!A:A`,
        bounds: `FIRST_EMPTY_ROW`,
        where: [{ }],
        field: `Throw`
      });
        await lib.discord.channels['@0.1.1'].messages.create({
          channel_id: event.channel_id,
          content: ``,
          embed: {
            title: ` `,
            type: 'rich',
            color: 0xff7700,
            description: `${.getRange(resultCellRow,resultCellColumn).setValue( vA[Math.floor(Math.random()*vA.length)]);}
            g ${database.distinct.values[0]}`,//tagged user and cell pulled from Gsheet
          }
        })
    }
  }
  </code></pre>