Skip to content

Commit

Permalink
fix: need to register command
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoodrow committed Aug 30, 2024
1 parent b51be33 commit 8980856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/features/applications/update-applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "../../shared/action/ready-action";
import { RequestApplication } from "./request-application-button-commands";

const applicationButton = new RequestApplication();
export const applicationCommandButton = new RequestApplication();

export const updateApplicationInfo = (
client: Client,
Expand All @@ -32,7 +32,7 @@ class UpdateApplicationInfoAction extends InstructionsReadyAction {
new ActionRowBuilder<MessageActionRowComponentBuilder>({
type: 1,
components: [
applicationButton.getButtonBuilder(ButtonStyle.Secondary),
applicationCommandButton.getButtonBuilder(ButtonStyle.Secondary),
],
}),
],
Expand Down
4 changes: 2 additions & 2 deletions src/listeners/register-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
CommandInteraction,
} from "discord.js";
import { clientId, guildId, token } from "../config";
import { applicationCommands } from "../features/applications/config";
import { applicationCommandButton } from "../features/applications/update-applications";
import { auctionCommand } from "../features/auctions/command";
import { bankHourCommand } from "../features/bank-hours/command";
import { bankCleanupButtonCommand } from "../features/bank-request-info/bank-cleanup-button-command";
Expand Down Expand Up @@ -55,7 +55,7 @@ const buttonCommands = [
leaveReinforcementsButtonCommand,
addAltInviteButtonCommand,
removePlayerInviteButtonCommand,
...applicationCommands,
applicationCommandButton,
];

export const getCommand = (
Expand Down

0 comments on commit 8980856

Please sign in to comment.