MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / getConfirmationButtons

Function getConfirmationButtons

src/utils/components.js:6–19  ·  view source on GitHub ↗
(customIdPrefix = 'confirm')

Source from the content-addressed store, hash-verified

4import { getColor } from '../config/bot.js';
5
6export function getConfirmationButtons(customIdPrefix = 'confirm') {
7 return new ActionRowBuilder().addComponents(
8 new ButtonBuilder()
9 .setCustomId(`${customIdPrefix}_yes`)
10 .setLabel('Confirm')
11 .setStyle(ButtonStyle.Success)
12 .setEmoji('✅'),
13 new ButtonBuilder()
14 .setCustomId(`${customIdPrefix}_no`)
15 .setLabel('Cancel')
16 .setStyle(ButtonStyle.Danger)
17 .setEmoji('❌')
18 );
19}
20
21export function getPaginationRow(customIdPrefix = 'page', currentPage = 1, totalPages = 1) {
22 return new ActionRowBuilder().addComponents(

Callers 1

executeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected