mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-27 11:15:02 +00:00
remove unused imports & add prettier plugin
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
33c6ae2188
commit
59bf98f928
289 changed files with 861 additions and 834 deletions
|
@ -1,6 +1,6 @@
|
|||
import { StrictMessageContent } from "../utils";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
import { calculateEmbedSize } from "./calculateEmbedSize";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
type ConsumeFn = (part: StrictMessageContent) => void;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { spawn, Worker, Pool } from "threads";
|
||||
import { MINUTES } from "../utils";
|
||||
import { Pool, spawn, Worker } from "threads";
|
||||
import { env } from "../env";
|
||||
import { MINUTES } from "../utils";
|
||||
|
||||
const pool = Pool(() => spawn(new Worker("./cryptWorker"), { timeout: 10 * MINUTES }), 8);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Profiler } from "knub/dist/Profiler";
|
||||
import { performance } from "perf_hooks";
|
||||
import { SECONDS, noop } from "../utils";
|
||||
import { noop, SECONDS } from "../utils";
|
||||
|
||||
let _profilingEnabled = false;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MessageCreateOptions } from "discord.js";
|
||||
import { messageHasContent } from "./messageHasContent";
|
||||
import { StrictMessageContent } from "../utils.js";
|
||||
import { messageHasContent } from "./messageHasContent";
|
||||
|
||||
export function messageIsEmpty(content: string | MessageCreateOptions | StrictMessageContent): boolean {
|
||||
return !messageHasContent(content);
|
||||
|
|
|
@ -12,9 +12,9 @@ import {
|
|||
StickerFormatType,
|
||||
User,
|
||||
} from "discord.js";
|
||||
import { UnknownUser } from "src/utils";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { TemplateSafeValueContainer, TypedTemplateSafeValueContainer } from "../templateFormatter";
|
||||
import { UnknownUser } from "src/utils";
|
||||
import { Case } from "../data/entities/Case";
|
||||
import {
|
||||
ISavedMessageAttachmentData,
|
||||
ISavedMessageData,
|
||||
|
@ -22,7 +22,7 @@ import {
|
|||
ISavedMessageStickerData,
|
||||
SavedMessage,
|
||||
} from "../data/entities/SavedMessage";
|
||||
import { Case } from "../data/entities/Case";
|
||||
import { TemplateSafeValueContainer, TypedTemplateSafeValueContainer } from "../templateFormatter";
|
||||
|
||||
type InputProps<T> = Omit<
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue