MCPcopy
hub / github.com/eritislami/evobot / filter

Function filter

commands/queue.ts:42–43  ·  view source on GitHub ↗
(buttonInteraction: Interaction)

Source from the content-addressed store, hash-verified

40 const queueEmbed = await interaction.fetchReply();
41
42 const filter = (buttonInteraction: Interaction) =>
43 buttonInteraction.isButton() && buttonInteraction.user.id === interaction.user.id;
44
45 const collector = queueEmbed.createMessageComponentCollector({ filter, time: 60000 });
46

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected