From 288cea20f81bcbef79c3a242f79f663a897f1b0d Mon Sep 17 00:00:00 2001 From: xmnlz <63904972+xmnlz@users.noreply.github.com> Date: Tue, 9 Jul 2024 21:50:19 +0200 Subject: [PATCH] Update panel.ts --- src/commands/eventsmode/panel.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/commands/eventsmode/panel.ts b/src/commands/eventsmode/panel.ts index 77597e6..525b2cb 100644 --- a/src/commands/eventsmode/panel.ts +++ b/src/commands/eventsmode/panel.ts @@ -209,7 +209,14 @@ export class Command { } } - await ctx.editReply({ embeds: [updatedEmbed] }); + const linkButton = new ButtonBuilder() + .setLabel('Присоединиться') + .setStyle(ButtonStyle.Link) + .setURL(`https://discord.com/channels/${ctx.guild.id}/${voiceChannelId}`); + + const row = new ActionRowBuilder().addComponents(linkButton); + + await ctx.editReply({ embeds: [updatedEmbed], components: [row] }); } @ButtonComponent({ id: '@button/event-pause-action' })