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

Function insertAdmins

src/utils/admin.utils.ts:9–19  ·  view source on GitHub ↗
(store: Store, mentionables: Mentionable[])

Source from the content-addressed store, hash-verified

7
8export namespace AdminUtils {
9 export function insertAdmins(store: Store, mentionables: Mentionable[]) {
10 return db.transaction(() =>
11 mentionables.map(mentionable =>
12 store.insertAdmin({
13 guildId: store.guild.id,
14 subjectId: mentionable.id,
15 isRole: mentionable instanceof Role,
16 }),
17 ),
18 );
19 }
20
21 export function deleteAdmins(store: Store, adminIds: bigint[]) {
22 // delete from db

Callers

nothing calls this directly

Calls 1

insertAdminMethod · 0.80

Tested by

no test coverage detected