Releases: Angelix1/Dishub
Releases · Angelix1/Dishub
Added Typescript Declaration, Idk smth like that
Added Delete Function
Delete
Delete function for simplify on deleting a message after sometime
Delete(message, Option, Content, time[ miliseconds ])message= The message that will be edited.Option["1", "2", "3", "4"]=1Normal,2Reply with mention,3lineReply with mention,4lineReply Without Mentioncontent= The content of next message or message tht will send.time= Time to wait till deletes happen.
5 Function ( Say, Re, LOG, Lreply, Edit )
4 Function ( Say, Re, LOG, Lreply )
What is this?
A Quality of Life Discord Package
Installation
npm i dishub --save
Usage
let Discord = require("discord.js");
let client = new Discord.Client();
let { Say , Re, LOG, Lreply } = require('dishub')
client.on("message", message => {
if (message.content === "ping") {
Say(message, "pong!")
}
if (message.content === "ping") {
Re(message, "pong!")
}
if (message.content === "ping") {
LOG("pong!")
}
if (message.content === "ping") {
Lreply(message, "pong!")
}
})
client.login("YOUR TOKEN HERE")Explanations
Say(message, "pong!")Sayis the package's Function for normal message.messageis mesage event where you defined it as message or else. If you defined message event as msg then the code will be like this.
Say(msg, "pong!")"pong!"or content of thing you wanted to send. It Self-Explanatory.
Available Options
Send as normal message
Say(message, 'Content of the message you wanted to send')Send message with Mention reply
Re(message, 'Content of the message you wanted to send')Basically Console.log()
LOG('Content of the message you wanted to send')WIP (Inline Reply)
In line Reply ( If error, Don't Use it, I still trying to figure it out, since Inline reply are not in Discord.js V12 )
Lreply(message, 'Content of the message you wanted to send')








