I am having issues with running my bot with DigitalOverflow. It contains a command that takes a screenshots of websites and sends them in the channel. However, when I use the command with DigitalOverflow, I simply get this error, and I'm not sure how to fix it. There's nothing above that either and I've searched and searched with no avail.
if(!message.channel.nsfw) return message.channel.send('This command is only usable in NSFW channels.')
if(!args[0]) return message.channel.send("Please provide a URL!");
let msg = args.join(" ")
const browser = await puppeteer.launch({ args: ['--disable-setuid-sandbox', '--disable-gpu','--no-first-run','--no-sandbox',]});
const page = await browser.newPage();
message.channel.send("Please wait, this may take a while.").then(msg => msg.delete({timeout: 8000, reason: ""}))
await page.goto(`${msg}`);
await page.screenshot({path: 'example.png'});
await browser.close();
message.channel.send("`" + `${msg}` + "`", {files: ["./example.png"]}).catch((e) => message.channel.send(`Issue found: ${e}`))