Skip to content

Commit

Permalink
[Enhancement] Styled the gelp message and added code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Sep 1, 2021
1 parent 923e6d9 commit dd16d45
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions commands/misc/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ module.exports = {
async execute(interaction, client) {
await interaction.deferReply();
const commands = client.commands.map(
(command) => `**${command.data.name}** - ${command.data.description}`
(command) =>
"```" +
`/${command.data.name}` +
"```" +
"- " +
`**${command.data.description}**`
);
const embed = {
color: "#9dcc37",
title: `${client.user.username}'s Commands!`,
description: `${commands.join("\n")}`,
description: `${commands.join("")}`,
author: {
name: `${interaction.user.username}`,
icon_url: `${interaction.user.avatarURL()}`,
Expand All @@ -27,3 +32,4 @@ module.exports = {
await interaction.followUp({ embeds: [embed] });
},
};
// .addField(`:calendar: Created:`, '```' + `${serverinfo.created} \n ${serverinfo.ago}` + '```', true)

0 comments on commit dd16d45

Please sign in to comment.