How do we create a embed help command?

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


1 Like

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.

2 Likes

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');

@rmx mind saying why you have a message event inside another message event :eyes:

Screenshot 2020-10-06 at 16.16.44

1 Like

uh i have absolutly no idea how that happened lmao

2 Likes

Hahaaha Lol!

lol at least you’re honest :laughing:

2 Likes

Hey, please don’t bump old posts without a reason. Thanks!

2 Likes

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

  • Larry