'Send console logs to an user in pm discord.js
Hello is it possible to send the console logs in pm to an user (me).
Example i have console.log('User generated a key') And i would like that it sends it to me each time there is a new log in console.
Solution 1:[1]
let user = client.users.cache.get('') //your id
user.send()// what u logged, put that in a var and send it
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Azer |
