🧶
dis-logs
  • 🛰️dis-logs
  • 🔛How To Use
  • ⬇️Instalation
  • 🕹️Methods
Powered by GitBook
On this page
  • WDownload the package
  • Import Package
  • Set Up Your Own Webhook
  • Customize your webhook
  • Webhook Name
  • Webhook Icon

Instalation

WDownload the package

npm install --save dis-logs 

Import Package

index.js

const { Webhook } = require('dis-logs')

Set Up Your Own Webhook

Simple Use

const log = new Webhook('YOUR_WEBHOOK_URL') // 

Advance Use

const log = new Webhook(
            'YOUR_WEBHOOK_URL',         // webhook
            'WEBHOOK_NAME',             // name
            'WEBHOOK_AVATAR',           // avatar
            true                        // 
        )

Customize your webhook

Webhook Name

The name is a string less than 34 characters

log.set_name('WEBHOOK_NAME')

Webhook Icon

logger.set_avatar('STRING_BASE64')
PreviousHow To UseNextMethods

Last updated 1 year ago

You can create a webhook icon by generating a image with to base64 converter

⬇️
onlinejpgtools.com
Webhook Profile