Skip to content

Commit

Permalink
Merge pull request #13 from xmnlz/xmnlz-patch-1
Browse files Browse the repository at this point in the history
Update panel.ts
  • Loading branch information
xmnlz authored Jul 9, 2024
2 parents af70b84 + 288cea2 commit 9d1c230
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/commands/eventsmode/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down

0 comments on commit 9d1c230

Please sign in to comment.