(store: Store, mentionables: Mentionable[])
| 7 | |
| 8 | export 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 |
nothing calls this directly
no test coverage detected