Skip to content

Commit

Permalink
UPdate help slasj
Browse files Browse the repository at this point in the history
  • Loading branch information
onepiecehung committed May 13, 2023
1 parent fd5f23e commit 4d297ef
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions src/commands/slash/help.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import {
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
CommandInteraction,
EmbedBuilder,
SlashCommandBuilder,
} from "discord.js";

import client from "../../client";

import Reply from "../../util/decorator/reply";

export default {
Expand All @@ -24,6 +26,27 @@ export default {
value: field.description,
});
}
return Reply.embed(interaction, embed);

const homepage = new ButtonBuilder()
.setLabel("Homepage")
.setURL(`${process.env.URL_HOMEPAGE}`)
.setStyle(ButtonStyle.Link);

const discussions = new ButtonBuilder()
.setLabel("Discussions")
.setURL(`${process.env.URL_DISCUSSIONS}`)
.setStyle(ButtonStyle.Link);

const reportBug = new ButtonBuilder()
.setLabel("Report bug")
.setURL(`${process.env.URL_REPORT_BUG}`)
.setStyle(ButtonStyle.Link);

const row = new ActionRowBuilder().addComponents(
homepage,
discussions,
reportBug
);
return Reply.embedButtons(interaction, embed, row);
},
};

0 comments on commit 4d297ef

Please sign in to comment.