MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / getButtonRow

Function getButtonRow

src/utils/display.utils.ts:391–406  ·  view source on GitHub ↗
(queue: DbQueue)

Source from the content-addressed store, hash-verified

389 }
390
391 function getButtonRow(queue: DbQueue) {
392 if (queue.buttonsToggle) {
393 const actionRowBuilder = new ActionRowBuilder<ButtonBuilder>();
394 if (!queue?.voiceOnlyToggle) {
395 actionRowBuilder.addComponents(
396 buildButton(BUTTONS.get(JoinButton.ID)),
397 buildButton(BUTTONS.get(LeaveButton.ID)),
398 );
399 }
400 actionRowBuilder.addComponents(
401 buildButton(BUTTONS.get(MyPositionsButton.ID)),
402 buildButton(BUTTONS.get(PullButton.ID)),
403 );
404 return [actionRowBuilder.toJSON()];
405 }
406 }
407}

Callers 2

newDisplayFunction · 0.85
editDisplayFunction · 0.85

Calls 2

buildButtonFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected