mirror of
https://github.com/danbulant/discord.js
synced 2026-05-19 12:30:42 +00:00
12 lines
277 B
JavaScript
12 lines
277 B
JavaScript
/**
|
|
* Send a message using a webhook
|
|
*/
|
|
|
|
// Import the discord.js module
|
|
const Discord = require('discord.js');
|
|
|
|
// Create a new webhook
|
|
const hook = new Discord.WebhookClient('webhook id', 'webhook token');
|
|
|
|
// Send a message using the webhook
|
|
hook.send('I am now alive!');
|