mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 20:55:01 +00:00
Organise all imports, make Mutes depend on Logs
This commit is contained in:
parent
a94e7593ec
commit
6ac9d2f2a2
437 changed files with 1912 additions and 2027 deletions
|
@ -1,12 +1,12 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { ConfigSchema, PersistPluginType } from "./types";
|
||||
import { GuildPersistedData } from "../../data/GuildPersistedData";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
import { StoreDataEvt } from "./events/StoreDataEvt";
|
||||
import { LoadDataEvt } from "./events/LoadDataEvt";
|
||||
import { GuildPersistedData } from "../../data/GuildPersistedData";
|
||||
import { trimPluginDescription } from "../../utils";
|
||||
import { LogsPlugin } from "../Logs/LogsPlugin";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { LoadDataEvt } from "./events/LoadDataEvt";
|
||||
import { StoreDataEvt } from "./events/StoreDataEvt";
|
||||
import { ConfigSchema, PersistPluginType } from "./types";
|
||||
|
||||
const defaultOptions: PluginOptions<PersistPluginType> = {
|
||||
config: {
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { persistEvt } from "../types";
|
||||
|
||||
import { GuildMemberEditData, Permissions } from "discord.js";
|
||||
import intersection from "lodash.intersection";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { stripObjectToScalars } from "../../../utils";
|
||||
import { getMissingPermissions } from "../../../utils/getMissingPermissions";
|
||||
import { LogsPlugin } from "../../Logs/LogsPlugin";
|
||||
import { missingPermissionError } from "../../../utils/missingPermissionError";
|
||||
import { canAssignRole } from "../../../utils/canAssignRole";
|
||||
import { getMissingPermissions } from "../../../utils/getMissingPermissions";
|
||||
import { memberRolesLock } from "../../../utils/lockNameHelpers";
|
||||
import { GuildMemberEditData, Permissions } from "discord.js";
|
||||
import { missingPermissionError } from "../../../utils/missingPermissionError";
|
||||
import { LogsPlugin } from "../../Logs/LogsPlugin";
|
||||
import { persistEvt } from "../types";
|
||||
|
||||
|
||||
const p = Permissions.FLAGS;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { persistEvt } from "../types";
|
||||
import { IPartialPersistData } from "../../../data/GuildPersistedData";
|
||||
|
||||
import intersection from "lodash.intersection";
|
||||
import { GuildMember } from "discord.js";
|
||||
import intersection from "lodash.intersection";
|
||||
import { IPartialPersistData } from "../../../data/GuildPersistedData";
|
||||
import { persistEvt } from "../types";
|
||||
|
||||
|
||||
export const StoreDataEvt = persistEvt({
|
||||
event: "guildMemberRemove",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as t from "io-ts";
|
||||
import { BasePluginType, typedGuildEventListener } from "knub";
|
||||
import { GuildPersistedData } from "../../data/GuildPersistedData";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
import { GuildPersistedData } from "../../data/GuildPersistedData";
|
||||
|
||||
export const ConfigSchema = t.type({
|
||||
persisted_roles: t.array(t.string),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue