Skip to content

Commit

Permalink
fix: Do not show the source publicly. (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern authored Nov 9, 2024
2 parents c147723 + c36d48f commit f4c5243
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions source/library/commands/components/source-notices/source-notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,15 @@ abstract class SourceNotice {
async #display(buttonPress: Logos.Interaction): Promise<void> {
const sourcesFormatted = this.#sources.join(constants.special.sigils.separator);

await this.client.reply(
buttonPress,
{
embeds: [
{
description: `${constants.emojis.link} ${sourcesFormatted}`,
color: constants.colours.blue,
footer: this.#notice !== undefined ? { text: this.#notice } : undefined,
},
],
},
{ visible: this.#interaction.parameters.show },
);
await this.client.reply(buttonPress, {
embeds: [
{
description: `${constants.emojis.link} ${sourcesFormatted}`,
color: constants.colours.blue,
footer: this.#notice !== undefined ? { text: this.#notice } : undefined,
},
],
});
}

async register(): Promise<void> {
Expand Down

0 comments on commit f4c5243

Please sign in to comment.