feat: clan polychrome research #1177

Merged
Sainan merged 10 commits from clan-polychrome into main 2025-03-16 04:32:12 -07:00
Showing only changes of commit cf7d0c3bbf - Show all commits

View File

@ -352,7 +352,7 @@ export const hasGuildPermissionEx = (
}; };
export const removePigmentsFromGuildMembers = async (guildId: string | Types.ObjectId): Promise<void> => { export const removePigmentsFromGuildMembers = async (guildId: string | Types.ObjectId): Promise<void> => {
const members = await GuildMember.find({ guildId }, "accountId"); const members = await GuildMember.find({ guildId, status: 0 }, "accountId");
for (const member of members) { for (const member of members) {
const inventory = await getInventory(member.accountId.toString(), "MiscItems"); const inventory = await getInventory(member.accountId.toString(), "MiscItems");
const index = inventory.MiscItems.findIndex( const index = inventory.MiscItems.findIndex(