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,7 +1,7 @@
|
|||
import { EmbedWith, EMPTY_CHAR, messageLink } from "../../../utils";
|
||||
|
||||
import { GuildChannel, Message } from "discord.js";
|
||||
import path from "path";
|
||||
import { Message, GuildChannel } from "discord.js";
|
||||
import { EmbedWith, EMPTY_CHAR } from "../../../utils";
|
||||
|
||||
|
||||
const imageAttachmentExtensions = ["jpeg", "jpg", "png", "gif", "webp"];
|
||||
const audioAttachmentExtensions = ["wav", "mp3", "m4a"];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Message, EmbedField } from "discord.js";
|
||||
import { EmbedField, Message } from "discord.js";
|
||||
import { EMPTY_CHAR, messageLink } from "../../../utils";
|
||||
import { TStarboardOpts } from "../types";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { SavedMessage } from "../../../data/entities/SavedMessage";
|
||||
import { StarboardPluginType } from "../types";
|
||||
import { removeMessageFromStarboard } from "./removeMessageFromStarboard";
|
||||
import { removeMessageFromStarboardMessages } from "./removeMessageFromStarboardMessages";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { PartialConfigSchema, defaultStarboardOpts } from "../types";
|
||||
import * as t from "io-ts";
|
||||
import { defaultStarboardOpts, PartialConfigSchema } from "../types";
|
||||
|
||||
export function preprocessStaticConfig(config: t.TypeOf<typeof PartialConfigSchema>) {
|
||||
if (config.boards) {
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
import { Message, TextChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { StarboardPluginType, TStarboardOpts } from "../types";
|
||||
|
||||
import moment from "moment-timezone";
|
||||
import { EmbedWith, EMPTY_CHAR, messageLink } from "../../../utils";
|
||||
import path from "path";
|
||||
import { createStarboardEmbedFromMessage } from "./createStarboardEmbedFromMessage";
|
||||
import { createStarboardPseudoFooterForMessage } from "./createStarboardPseudoFooterForMessage";
|
||||
import { Message, TextChannel } from "discord.js";
|
||||
|
||||
|
||||
export async function saveMessageToStarboard(
|
||||
pluginData: GuildPluginData<StarboardPluginType>,
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { noop } from "../../../utils";
|
||||
import { createStarboardPseudoFooterForMessage } from "./createStarboardPseudoFooterForMessage";
|
||||
import { TStarboardOpts } from "../types";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
import { Message } from "discord.js";
|
||||
import { TStarboardOpts } from "../types";
|
||||
import { createStarboardPseudoFooterForMessage } from "./createStarboardPseudoFooterForMessage";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
const DEBOUNCE_DELAY = 1000;
|
||||
const debouncedUpdates: Record<string, Timeout> = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue