How do we create a embed help command?
So i’ve tried to create a embed help command but its too hard so could anyone give me The code!
Ty,AmazingGfx
How do we create a embed help command?
So i’ve tried to create a embed help command but its too hard so could anyone give me The code!
Ty,AmazingGfx
I’ve checked the embed topic over there but it doesn’t work
Are you using v11 or v12
My bot version is V12
If you’re want to make Embed message in Discord.js:
const { MessageEmbed } = require("discord.js")
//MessageEmbed variable created
//Let's create Embed Message
//But first, Let's create Variable message
let embed = new MessageEmbed()
.setTitle("Title here")
.setDescription("Lorem ipsum")
.setColor("RANDOM")
//Send embed message
message.channel.send(embed)
Read the full Guide at https://discordjs.guide
But then how can we make a bot respond to !help with the embed?
const { MessageEmbed } = require("discord.js")
if(message.content === "!help") {
let embed = new MessageEmbed()
.setTitle("Command List")
.setDescription("!help, !roll, !kick, !ban")
.setColor("RANDOM")
message.channel.send(embed)
}
But it has a error because its not in a message event.
You are clearly new to coding.
I recommend that you study the documentation so that you actually know what you’re doing - links have already been provided by other forum members.
Here is an example Discord Bot that responds to !help with an embed. In the future try following tutorials and reading documentation - it’s important to learn, apart from relying on being spoon-fed.
const Discord = require('discord.js');
const client = new Discord.Client();
const { MessageEmbed } = require("discord.js")
client.on('ready', () => {
console.log(`Logged in.`);
});
client.on('message', message => {
if(message.content === "!help") {
let embed = new MessageEmbed()
.setTitle("Command List")
.setDescription("!help, !roll, !kick, !ban")
.setColor("RANDOM")
message.channel.send(embed)
}
});
client.login('token');
uh i have absolutly no idea how that happened lmao
Hahaaha Lol!
lol at least you’re honest
Hey, please don’t bump old posts without a reason. Thanks!
Just to finish off this question, perhaps you are looking for a code example such as one from the official discordjs guide
For anyone else wanting help, here’s the link to the page with almost everything about embeds. Hopefully you find that useful
https://discordjs.guide/popular-topics/embeds.html