1.0.0 • Published 3 years ago

discord-webhook-api2 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Made by Purge#1000

How to use

Get link Get your webhook link from discord should looks something like this

https://canary.discordapp.com/api/webhooks/<HOOKID>/<TOKEN>

Setup This has to be done

var discord = require('discord-webhook-api2');
discord.hookId = 'PutHookIdHere';
discord.hookToken = 'PutTokenHere';

This Can be done if you want

discord.userName = 'SpiderBot';
discord.avatarUrl = 'SomeUrl';

Use To send a message after you set

discord.sendMessage('Some text');

Join Green Studios! (Click Here)https://discord.gg/AeTNGdEW