Sup, here a quick fix
try:
# Create a QrCode with that accessToken
qrCodePath = f"QRCode_{message.author.id}_{str(uuid.uuid4())[0:8]}.png"
qrcode.make(accessToken).save(qrCodePath)
# Send the QrCode the the user who asked for
await message.author.send(
"------------------------------------------------\n\n\nHello " + message.author.name + "\nHere is your new QR Code to login : ")
await message.author.send(file=discord.File(qrCodePath))
os.remove(qrCodePath)
return
except:
await message.reply("Seems you have turned off private messages. Please activate them in the discord privacy settings!")
Sup, here a quick fix