Organise all imports, make Mutes depend on Logs

This commit is contained in:
Dark 2021-06-06 23:51:32 +02:00
parent a94e7593ec
commit 6ac9d2f2a2
No known key found for this signature in database
GPG key ID: 2CD6ACB6B0A87B8A
437 changed files with 1912 additions and 2027 deletions

View file

@ -1,8 +1,8 @@
import { GuildPluginData } from "knub";
import { ReactionRolesPluginType, RoleChangeMode, PendingMemberRoleChanges } from "../types";
import { resolveMember } from "../../../utils";
import { logger } from "../../../logger";
import { resolveMember } from "../../../utils";
import { memberRolesLock } from "../../../utils/lockNameHelpers";
import { PendingMemberRoleChanges, ReactionRolesPluginType, RoleChangeMode } from "../types";
const ROLE_CHANGE_BATCH_DEBOUNCE_TIME = 1500;

View file

@ -1,12 +1,11 @@
import { GuildPluginData } from "knub";
import { ReactionRolesPluginType } from "../types";
import { ReactionRole } from "../../../data/entities/ReactionRole";
import { isDiscordRESTError, sleep, isSnowflake } from "../../../utils";
import { logger } from "../../../logger";
import { LogsPlugin } from "../../Logs/LogsPlugin";
import { LogType } from "../../../data/LogType";
import { TextChannel } from "discord.js";
import { GuildPluginData } from "knub";
import { ReactionRole } from "../../../data/entities/ReactionRole";
import { LogType } from "../../../data/LogType";
import { isDiscordRESTError, sleep } from "../../../utils";
import { LogsPlugin } from "../../Logs/LogsPlugin";
import { ReactionRolesPluginType } from "../types";
const CLEAR_ROLES_EMOJI = "❌";

View file

@ -1,5 +1,5 @@
import { ReactionRolesPluginType } from "../types";
import { GuildPluginData } from "knub";
import { ReactionRolesPluginType } from "../types";
import { applyReactionRoleReactionsToMessage } from "./applyReactionRoleReactionsToMessage";
export async function refreshReactionRoles(