Skip to content

Commit

Permalink
fix: The show parameter not working on the /cefr command. (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern authored Aug 18, 2024
2 parents 6ba3a4e + d025297 commit a2e4357
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "logos",
"description": "A multi-purpose community bot built to cater to language-learning communities on Discord.",
"license": "Apache-2.0",
"version": "4.20.1",
"version": "4.20.2",
"type": "module",
"keywords": [
"discord",
Expand Down
12 changes: 8 additions & 4 deletions source/library/commands/components/tabbed-views/tabbed-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ abstract class TabbedView<Generic extends { groups: Record<string, string> }> {
async #display(): Promise<void> {
const view = this.#view;

await this.client.reply(this.#anchor, {
embeds: [view.embed],
components: view.components,
});
await this.client.reply(
this.#anchor,
{
embeds: [view.embed],
components: view.components,
},
{ visible: this.#anchor.parameters.show },
);
}

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

0 comments on commit a2e4357

Please sign in to comment.