Skip to content

Commit

Permalink
Update app discovery url
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf authored Jan 15, 2025
1 parent 6196e34 commit 023fc0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions commands/info/botinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ export default async (interaction, messageFlags) => {
{ name: "Latest Commit:", value: lastCommitString, inline: false }
]);

const appDirectory = "https://discord.com/discovery/applications/";
//// Shop Button
// let shopButtonText = "Donate";
// let shopButtonLink = `https://discord.com/application-directory/${interaction.client.user.id}/store/`;
// let shopButtonLink = `${appDirectory}${interaction.client.user.id}/store/`;
// const shopButton = new ButtonBuilder()
// .setLabel(shopButtonText)
// .setStyle(ButtonStyle.Link)
Expand All @@ -77,7 +78,7 @@ export default async (interaction, messageFlags) => {
const appDirectoryButton = new ButtonBuilder()
.setLabel("App Directory")
.setStyle(ButtonStyle.Link)
.setURL(`https://discord.com/application-directory/${interaction.client.user.id}`);
.setURL(`${appDirectory}${interaction.client.user.id}`);
const inviteButton = new ButtonBuilder()
.setLabel("Add Bot") // "Add" over "Invite" as bots can be added to users now
.setStyle(ButtonStyle.Link)
Expand Down Expand Up @@ -114,4 +115,4 @@ const ephemeralOption = new SlashCommandBooleanOption()
export const commandObject = new SlashCommandBuilder()
.setName("botinfo")
.setDescription("Displays info about this bot.")
.addBooleanOption(ephemeralOption);
.addBooleanOption(ephemeralOption);

0 comments on commit 023fc0b

Please sign in to comment.