mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-08 00:05:01 +00:00
fix: remove old references to per-method lodash packages
See https://lodash.com/per-method-packages
This commit is contained in:
parent
43b8017985
commit
4ac7ff0843
6 changed files with 12 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
|||
import { guildPluginEventListener } from "knub";
|
||||
import diff from "lodash.difference";
|
||||
import isEqual from "lodash.isequal";
|
||||
import { difference } from "lodash";
|
||||
import { isEqual } from "lodash";
|
||||
import { runAutomod } from "../functions/runAutomod.js";
|
||||
import { AutomodContext, AutomodPluginType } from "../types.js";
|
||||
|
||||
|
@ -15,8 +15,8 @@ export const RunAutomodOnMemberUpdate = guildPluginEventListener<AutomodPluginTy
|
|||
|
||||
if (isEqual(oldRoles, newRoles)) return;
|
||||
|
||||
const addedRoles = diff(newRoles, oldRoles);
|
||||
const removedRoles = diff(oldRoles, newRoles);
|
||||
const addedRoles = difference(newRoles, oldRoles);
|
||||
const removedRoles = difference(oldRoles, newRoles);
|
||||
|
||||
if (addedRoles.length || removedRoles.length) {
|
||||
const context: AutomodContext = {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Invite } from "discord.js";
|
||||
import escapeStringRegexp from "escape-string-regexp";
|
||||
import { GuildPluginData } from "knub";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash";
|
||||
import { allowTimeout } from "../../../RegExpRunner.js";
|
||||
import { ZalgoRegex } from "../../../data/Zalgo.js";
|
||||
import { ISavedMessageEmbedData, SavedMessage } from "../../../data/entities/SavedMessage.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { EmbedData, GuildTextBasedChannel, Snowflake } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage.js";
|
||||
import { resolveUser } from "../../../utils.js";
|
||||
import { logMessageEdit } from "../logFunctions/logMessageEdit.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { GuildMember, PermissionFlagsBits } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import intersection from "lodash.intersection";
|
||||
import { intersection } from "lodash";
|
||||
import { PersistedData } from "../../../data/entities/PersistedData.js";
|
||||
import { SECONDS } from "../../../utils.js";
|
||||
import { canAssignRole } from "../../../utils/canAssignRole.js";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue