Skip to content

Commit

Permalink
add command to manager (#51)
Browse files Browse the repository at this point in the history
* add the rest of the commands

* move backup request

* add command to manager
  • Loading branch information
CKY- authored Dec 9, 2024
1 parent 4ee2b33 commit 56e42aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/interactions/commands/command-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { sendToIssuesContextMenuCommand } from './handlers/send-to-issues-contex
import { randomFeaturedSlashCommand } from './handlers/random-featured-slash';
import { docsSlashCommand } from './handlers/docs/docs-slash';
import { infoSlashCommand } from './handlers/info/info-slash';
import { backupRequestCommand } from './handlers/backup-request';

class CommandManager implements IInteractionManager {
private handlers: ICommandHandler[] = [];
Expand All @@ -42,6 +43,7 @@ class CommandManager implements IInteractionManager {
randomFeaturedSlashCommand,
docsSlashCommand,
infoSlashCommand,
backupRequestCommand,
];

for (const handler of commandsToRegister) {
Expand Down
2 changes: 1 addition & 1 deletion src/interactions/commands/handlers/backup-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = new SlashCommandBuilder()
.setDescription('Request a users backup')
.setDefaultMemberPermissions(0);

export const saySlashCommand: ICommandHandler = {
export const backupRequestCommand: ICommandHandler = {
type: CommandType.SlashCommand,
config,
async onTrigger(interaction) {
Expand Down

0 comments on commit 56e42aa

Please sign in to comment.