discord-helper.js
v6.1.0
Published
a helper to help you do simple tasks with discord.js
Downloads
72
Readme
About this package
We understand JavaScript can be hard especially with discord.js. This package has logs and a send webhook to send discord embeds to a discord webhook! IT EVEN HAS MATH!!!!!!
Install
npm i discord-helper.js
or yarn add discord-helper.js
Example
// these are just examples please provide the actual info
import * as discordHelper from "discord-helper.js"; // typescript
let guildid = "Guild Id Here";
const discordHelper = require("discord-helper.js"); // javascript
new discordHelper.HelperClient(client).GlobalcommandRegisterAsync({
name: "hello",
description: "command",
options: [],
type: "Optinal",
permission: "Administrator",
});
new discordHelper.HelperClient(client).GuildcommandRegisterAsync(guildid, {
name: "hello",
description: "command",
options: [],
type: "Optinal",
permission: "Administrator",
});
new discordHelper.HelperClient(client)
.clientPing()
.then((data) => {
console.log(data);
})
.catch((err) => {});
new discordHelper.HelperClient(client).threadCreateAsync(
"name",
channel,
message,
guild
);
new discordHelper.HelperClient(client).channelsend(channel, "", embed);
new discordHelper.HelperUtils()
.math(1, 2)
.then((data) => {
console.log(data);
})
.catch((err) => {});
new discordHelper.HelperUtils()
.pages(array, 1, 1)
.then((data) => {
console.log(data);
})
.catch((err) => {});
new discordHelper.HelperUtils()
.permCheckerAsync(perm, member, channel)
.then((data) => {
console.log(data);
})
.catch((err) => {});
new discordHelper.HelperUtils().discordsendwebhook(webhookURL, "", embed);
Support
email : [email protected]
discord: https://discord.gg/tUpsrAmkqp