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

Method pull

src/commands/commands/pull.command.ts:33–48  ·  view source on GitHub ↗
(inter: SlashInteraction)

Source from the content-addressed store, hash-verified

31 // ====================================================================
32
33 static async pull(inter: SlashInteraction) {
34 const queues = await PullCommand.PULL_OPTIONS.queues.get(inter);
35 const count = PullCommand.PULL_OPTIONS.count.get(inter);
36 const members = await PullCommand.PULL_OPTIONS.members.get(inter);
37
38 await MemberUtils.deleteMembers({
39 store: inter.store,
40 queues,
41 reason: ArchivedMemberReason.Pulled,
42 by: { userIds: members?.map((member) => member.userId), count },
43 messageChannelId: inter.channel.id,
44 force: true,
45 });
46
47 await inter.deleteReply();
48 }
49}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected