mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Move to new docgen
This commit is contained in:
12
docs/examples/webhook.js
Normal file
12
docs/examples/webhook.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
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.sendMessage('I am now alive!');
|
||||
Reference in New Issue
Block a user