Last updated 10 months ago
npm install --save dis-logs
index.js
const { Webhook } = require('dis-logs')
const log = new Webhook('YOUR_WEBHOOK_URL') //
const log = new Webhook( 'YOUR_WEBHOOK_URL', // webhook 'WEBHOOK_NAME', // name 'WEBHOOK_AVATAR', // avatar true // )
The name is a string less than 34 characters
log.set_name('WEBHOOK_NAME')
You can create a webhook icon by generating a image with onlinejpgtools.com to base64 converter
logger.set_avatar('STRING_BASE64')