Articles on: Discord Bot Guides

How to use Puppeteer with your Discord bot



Currently, we support headless Chrome instances only in the latest NodeJS version.

Here's an example on how to initialize the browser object:
const browser = await puppeteer.launch({
     headless: true,
     args: ['--no-sandbox', '--disable-setuid-sandbox']
  })

Updated on: 28/12/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!