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

Function queueMention

src/utils/string.utils.ts:27–36  ·  view source on GitHub ↗
(queue: DbQueue)

Source from the content-addressed store, hash-verified

25export const ERROR_HEADER_LINE = "⚠️ ERROR ⚠️";
26
27export function queueMention(queue: DbQueue): string {
28 const badges = [];
29 if (queue.badgeToggle) {
30 if (queue.lockToggle) badges.push("🔒");
31 if (!queue.notificationsToggle) badges.push("🔕");
32 if (queue.autopullToggle) badges.push("🔁");
33 if (queue.voiceOnlyToggle) badges.push("🔊");
34 }
35 return bold(queue.name) + (badges.length ? " " + badges.join(" ") : "");
36}
37
38export function queuesMention(queues: ArrayOrCollection<bigint, DbQueue>): string {
39 return map(queues, queue => queueMention(queue)).sort().join(", ");

Callers 15

handleMethod · 0.90
handleMethod · 0.90
dmToMembersFunction · 0.90
generateQueueDisplayFunction · 0.90
clearMembersFunction · 0.90
shuffleMembersFunction · 0.90
getMemberDisplayLineFunction · 0.90
describePulledMembersFunction · 0.90
queues_setMethod · 0.90
queues_deleteMethod · 0.90
voice_add_sourceMethod · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected