@acar02/discordjs-tools 中文文档教程
discordjs-tools
一个易于配置的 DiscordJS。
const Discord = require("discord.js");
require("discordjs-tools")(Discord, {
"defaultEmbed": {
"color": "RED", // sa
"description": "Hi" // sa
}
})
let embed = new Discord.RichEmbed(); // if you are using 12.0.0-dev version, it is Discord.MessageEmbed();
embed.setDescription("hi xd");
/*
embed color is red,
embed description is 'hi xd';
*/
discordjs-tools
A easily configurable DiscordJS.
const Discord = require("discord.js");
require("discordjs-tools")(Discord, {
"defaultEmbed": {
"color": "RED", // sa
"description": "Hi" // sa
}
})
let embed = new Discord.RichEmbed(); // if you are using 12.0.0-dev version, it is Discord.MessageEmbed();
embed.setDescription("hi xd");
/*
embed color is red,
embed description is 'hi xd';
*/