webhook/test/test.cjs

5 lines
339 B
JavaScript
Raw Normal View History

// eslint-disable-next-line @typescript-eslint/no-var-requires
const { WebhookClient } = require('../build/cjs/index.js');
console.log(WebhookClient);
const webhook = new WebhookClient({ url: 'https://discord.com/api/webhooks/1093874668886294548/uDMRD6g1lmq_2EZynsbKytzWoMM-0N4te0m61r_cv1BsSnDKDxG3fvI6sxSoG5t5b_xn' });
webhook.send('Hi');