From 5a6d5a94639f77598929820ebb3ced828853b008 Mon Sep 17 00:00:00 2001 From: LucasB25 <50886682+LucasB25@users.noreply.github.com> Date: Tue, 30 Jul 2024 21:21:46 +0200 Subject: [PATCH] Update Deploy.ts --- src/commands/dev/Deploy.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/commands/dev/Deploy.ts b/src/commands/dev/Deploy.ts index ec1f31295..a1e0b0265 100644 --- a/src/commands/dev/Deploy.ts +++ b/src/commands/dev/Deploy.ts @@ -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, { @@ -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, @@ -32,12 +31,11 @@ export default class Deploy extends Command { } public async run(client: Lavamusic, ctx: Context, _args: string[]): Promise { - const row = new ActionRowBuilder().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], @@ -71,4 +69,4 @@ export default class Deploy extends Command { await msg.delete().catch(() => {}); }); } -} \ No newline at end of file +}