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
backend/src

View file

@ -1,50 +1,44 @@
import { URL } from "url";
import tlds from "tlds";
import emojiRegex from "emoji-regex";
import * as t from "io-ts";
import {
Client,
Constants,
Emoji,
Guild,
GuildAuditLogs,
GuildAuditLogsEntry,
GuildChannel,
GuildMember,
Invite,
Message,
MessageAttachment,
MessageEmbed,
MessageEmbedOptions,
MessageMentionOptions,
MessageOptions,
PartialChannelData,
PartialMessage,
StringResolvable,
TextChannel,
User
} from "discord.js";
import emojiRegex from "emoji-regex";
import { either } from "fp-ts/lib/Either";
import { unsafeCoerce } from "fp-ts/lib/function";
import fs from "fs";
import https from "https";
import tmp from "tmp";
import { helpers } from "knub";
import { SavedMessage } from "./data/entities/SavedMessage";
import { decodeAndValidateStrict, StrictValidationError } from "./validatorUtils";
import { either } from "fp-ts/lib/Either";
import * as t from "io-ts";
import moment from "moment-timezone";
import tlds from "tlds";
import tmp from "tmp";
import { URL } from "url";
import { SavedMessage } from "./data/entities/SavedMessage";
import { SimpleCache } from "./SimpleCache";
import { logger } from "./logger";
import { unsafeCoerce } from "fp-ts/lib/function";
import { sendDM } from "./utils/sendDM";
import { LogType } from "./data/LogType";
import {
APIMessage,
Channel,
Client,
Constants,
Emoji,
Guild,
GuildAuditLogs,
GuildAuditLogsEntry,
GuildChannel,
GuildMember,
Interaction,
Invite,
Message,
MessageActionRow,
MessageAttachment,
MessageComponent,
MessageEmbed,
MessageEmbedOptions,
MessageMentionOptions,
MessageOptions,
PartialChannelData,
PartialMessage,
StringResolvable,
TextChannel,
User,
} from "discord.js";
import { ChannelTypeStrings } from "./types";
import { waitForButtonConfirm } from "./utils/waitForInteraction";
import { decodeAndValidateStrict, StrictValidationError } from "./validatorUtils";
const fsp = fs.promises;