mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
13 lines
274 B
JavaScript
13 lines
274 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!');
|