mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-08 00:05:01 +00:00
chore: formatting
This commit is contained in:
parent
5c0602715d
commit
81109314ea
45 changed files with 139 additions and 75 deletions
|
@ -1,9 +1,9 @@
|
|||
import { Attachment, ChatInputCommandInteraction, GuildMember, Message, User } from "discord.js";
|
||||
import { humanizeDuration } from "../../../../humanizeDuration.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { getMemberLevel } from "knub/helpers";
|
||||
import { CaseTypes } from "../../../../data/CaseTypes.js";
|
||||
import { clearExpiringTempban, registerExpiringTempban } from "../../../../data/loops/expiringTempbansLoop.js";
|
||||
import { humanizeDuration } from "../../../../humanizeDuration.js";
|
||||
import { canActOn, getContextChannel } from "../../../../pluginUtils.js";
|
||||
import { UnknownUser, UserNotificationMethod, renderUsername, resolveMember } from "../../../../utils.js";
|
||||
import { banLock } from "../../../../utils/lockNameHelpers.js";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { APIEmbed, ChatInputCommandInteraction, GuildMember, Message, User } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { In } from "typeorm";
|
||||
import { FindOptionsWhere } from "typeorm";
|
||||
import { FindOptionsWhere, In } from "typeorm";
|
||||
import { CaseTypes } from "../../../../data/CaseTypes.js";
|
||||
import { Case } from "../../../../data/entities/Case.js";
|
||||
import { sendContextResponse } from "../../../../pluginUtils.js";
|
||||
|
|
|
@ -2,7 +2,14 @@ import { Attachment, ChatInputCommandInteraction, GuildMember, Message, User } f
|
|||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../../data/LogType.js";
|
||||
import { canActOn } from "../../../../pluginUtils.js";
|
||||
import { DAYS, SECONDS, UnknownUser, UserNotificationMethod, renderUsername, resolveMember } from "../../../../utils.js";
|
||||
import {
|
||||
DAYS,
|
||||
SECONDS,
|
||||
UnknownUser,
|
||||
UserNotificationMethod,
|
||||
renderUsername,
|
||||
resolveMember,
|
||||
} from "../../../../utils.js";
|
||||
import { handleAttachmentLinkDetectionAndGetRestriction } from "../../functions/attachmentLinkReaction.js";
|
||||
import {
|
||||
formatReasonWithAttachments,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Attachment, ChatInputCommandInteraction, GuildMember, Message, User } from "discord.js";
|
||||
import { humanizeDuration } from "../../../../humanizeDuration.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { ERRORS, RecoverablePluginError } from "../../../../RecoverablePluginError.js";
|
||||
import { humanizeDuration } from "../../../../humanizeDuration.js";
|
||||
import { logger } from "../../../../logger.js";
|
||||
import {
|
||||
UnknownUser,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Attachment, ChatInputCommandInteraction, GuildMember, Message, User } from "discord.js";
|
||||
import { humanizeDuration } from "../../../../humanizeDuration.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { humanizeDuration } from "../../../../humanizeDuration.js";
|
||||
import { UnknownUser, asSingleLine, renderUsername } from "../../../../utils.js";
|
||||
import { MutesPlugin } from "../../../Mutes/MutesPlugin.js";
|
||||
import { handleAttachmentLinkDetectionAndGetRestriction } from "../../functions/attachmentLinkReaction.js";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { DiscordAPIError, Snowflake } from "discord.js";
|
||||
import { humanizeDuration } from "../../../humanizeDuration.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { LogType } from "../../../data/LogType.js";
|
||||
import { registerExpiringTempban } from "../../../data/loops/expiringTempbansLoop.js";
|
||||
import { humanizeDuration } from "../../../humanizeDuration.js";
|
||||
import { logger } from "../../../logger.js";
|
||||
import { TemplateParseError, TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter.js";
|
||||
import {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { humanizeDuration } from "../../../humanizeDuration.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import moment from "moment-timezone";
|
||||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { LogType } from "../../../data/LogType.js";
|
||||
import { Tempban } from "../../../data/entities/Tempban.js";
|
||||
import { humanizeDuration } from "../../../humanizeDuration.js";
|
||||
import { logger } from "../../../logger.js";
|
||||
import { resolveUser } from "../../../utils.js";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin.js";
|
||||
|
|
|
@ -3,7 +3,13 @@ import { GuildPluginData } from "knub";
|
|||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { LogType } from "../../../data/LogType.js";
|
||||
import { renderTemplate, TemplateParseError, TemplateSafeValueContainer } from "../../../templateFormatter.js";
|
||||
import { createUserNotificationError, notifyUser, resolveUser, ucfirst, UserNotificationResult } from "../../../utils.js";
|
||||
import {
|
||||
createUserNotificationError,
|
||||
notifyUser,
|
||||
resolveUser,
|
||||
ucfirst,
|
||||
UserNotificationResult,
|
||||
} from "../../../utils.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects.js";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin.js";
|
||||
import { LogsPlugin } from "../../Logs/LogsPlugin.js";
|
||||
|
|
|
@ -2,7 +2,13 @@ import { GuildMember, Snowflake } from "discord.js";
|
|||
import { GuildPluginData } from "knub";
|
||||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { TemplateParseError, TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter.js";
|
||||
import { UserNotificationResult, createUserNotificationError, notifyUser, resolveUser, ucfirst } from "../../../utils.js";
|
||||
import {
|
||||
UserNotificationResult,
|
||||
createUserNotificationError,
|
||||
notifyUser,
|
||||
resolveUser,
|
||||
ucfirst,
|
||||
} from "../../../utils.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects.js";
|
||||
import { waitForButtonConfirm } from "../../../utils/waitForInteraction.js";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin.js";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue