Skip to content

Commit

Permalink
Close button row
Browse files Browse the repository at this point in the history
  • Loading branch information
benw202 committed Feb 5, 2024
1 parent 4364aa0 commit 8fc2ebe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/utils/poll/functions/closePoll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export async function closePoll(interaction: ChatInputCommandInteraction<'cached
footer: { text: `Poll ID: ${poll._id}` },
});

const emptyButtonRow = new ActionRowBuilder<ButtonBuilder>().addComponents();
const emptyButtonRow = new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder().setCustomId('vote_placeholder').setLabel('This poll has now closed').setDisabled(true),
);

await pollMessage?.edit({ embeds: [closedPollEmbed], components: [emptyButtonRow] });

Expand Down

0 comments on commit 8fc2ebe

Please sign in to comment.