Skip to content

Commit

Permalink
Update Deploy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasB25 committed Jul 30, 2024
1 parent bac9044 commit 5a6d5a9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/commands/dev/Deploy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ActionRowBuilder, ButtonBuilder, type ButtonInteraction, ButtonStyle, ComponentType } from "discord.js";
import { Command, type Context, type Lavamusic } from "../../structures/index.js";


export default class Deploy extends Command {
constructor(client: Lavamusic) {
super(client, {
Expand All @@ -14,7 +13,7 @@ export default class Deploy extends Command {
category: "dev",
aliases: ["deploy-commands"],
cooldown: 3,
args: true,
args: false,
player: {
voice: false,
dj: false,
Expand All @@ -32,12 +31,11 @@ export default class Deploy extends Command {
}

public async run(client: Lavamusic, ctx: Context, _args: string[]): Promise<any> {

const row = new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder().setCustomId("deploy-global").setLabel("Global").setStyle(ButtonStyle.Secondary),
new ButtonBuilder().setCustomId("deploy-guild").setLabel("Guild").setStyle(ButtonStyle.Secondary),
);

const msg = await ctx.sendMessage({
content: "Where do you want to deploy the commands?",
components: [row],
Expand Down Expand Up @@ -71,4 +69,4 @@ export default class Deploy extends Command {
await msg.delete().catch(() => {});
});
}
}
}

0 comments on commit 5a6d5a9

Please sign in to comment.