// Importing the DvoClient classconst { DvoClient } =require('dvo.js');
let client =newDvoClient({
token: "TOKEN_HERE",// Your discord bot token.clientId: "APP_ID_HERE",// Your bot ID.intents: ["Guilds", "MessageContent", "GuildMessages", "GuildMembers"],// Your bot intents.prefix: "!"// Message command prefix.
});
Note
Create your own bot from Discord Developer portal and get bot token and id && Enable the intents.
if your bot verified you can customize the intents in createtion code
Warning
Prefix only for message command
Intents Available:
Guilds
GuildPresences
GuildMembers
GuildMessages
GuildMessageContent
GuildVoiceStates
GuildInvites
GuildEmojisAndStickers
GuildWebhooks
GuildInteractions
GuildScheduledEvents
GuildAutomodRules
DirectMessages
DirectMessageReactions
MessageContent
Functions
There is a functions to help you in making a command.
Embeder
const { Embeder } =require("dvo.js");
client.command({
name: "embed",
asyncexecute(message) {
let embed =newEmbeder()
.color(0x0099FF)
.title("Some title")
.url("https://i.ibb.co/PDJgc24/1.png")
.author("Some name", "https://i.ibb.co/PDJgc24/1.png", "https://discord.gg/wc5w9SVfzP")
.description("some description here")
.thumbnail("https://i.ibb.co/PDJgc24/1.png")
.addField("Regular field title", "Some value here")
.addField("Inline field title", "Some value here", true)
.addField("Inline field title", "Some value here", true)
.addField("Inline field title", "Some value here", true)
.image("https://i.ibb.co/PDJgc24/1.png")
.timestamp()
.footer("Some footer text here", "https://i.ibb.co/PDJgc24/1.png")
message.reply({embeds: [embed.build()]})
}
});