asunyan-sendmessage
v1.0.1
Published
Small module to send messages to a specific channel with discord.js
Maintainers
Readme
asunyan-sendmessage
A simple module to send messages with discord.js to a specified channel in a specified guild.
Install
$ npm install asunyan-sendmessageUsage
const { sendMessage } = require('asunyan-sendmessage');
const message = await sendMessage(client, guildId, channelId, data).catch((err) => console.error(err));
data can be either a string or any message create options. Example:
const message = await sendMessage(client, guildId, channelId, { embeds: [embed] }).catch((err) => console.error(err));