mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
DJS Update, Full Import Cleanup
This commit is contained in:
parent
acb4913495
commit
c932269b7d
67 changed files with 119 additions and 144 deletions
|
@ -1,11 +1,11 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { ConfigPreprocessorFn } from "knub/dist/config/configTypes";
|
||||
import { GuildButtonRoles } from "../../data/GuildButtonRoles";
|
||||
import { isValidSnowflake } from "../../utils";
|
||||
import { StrictValidationError } from "../../validatorUtils";
|
||||
import { GuildReactionRoles } from "../../data/GuildReactionRoles";
|
||||
import { GuildSavedMessages } from "../../data/GuildSavedMessages";
|
||||
import { Queue } from "../../Queue";
|
||||
import { isValidSnowflake } from "../../utils";
|
||||
import { StrictValidationError } from "../../validatorUtils";
|
||||
import { LogsPlugin } from "../Logs/LogsPlugin";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { ClearReactionRolesCmd } from "./commands/ClearReactionRolesCmd";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { MessageActionRow, MessageButton, Snowflake, TextChannel } from "discord.js";
|
||||
import { createHash } from "crypto";
|
||||
import { MessageButton, Snowflake } from "discord.js";
|
||||
import moment from "moment";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "src/pluginUtils";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { reactionRolesCmd } from "../types";
|
||||
import { createHash } from "crypto";
|
||||
import moment from "moment";
|
||||
import { splitButtonsIntoRows } from "../util/splitButtonsIntoRows";
|
||||
|
||||
export const PostButtonRolesCmd = reactionRolesCmd({
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { MessageComponentInteraction } from "discord.js";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import moment from "moment";
|
||||
import { LogType } from "src/data/LogType";
|
||||
import { logger } from "src/logger";
|
||||
|
@ -6,10 +7,9 @@ import { LogsPlugin } from "src/plugins/Logs/LogsPlugin";
|
|||
import { MINUTES } from "src/utils";
|
||||
import { idToTimestamp } from "src/utils/idToTimestamp";
|
||||
import { reactionRolesEvt } from "../types";
|
||||
import { resolveStatefulCustomId, BUTTON_CONTEXT_SEPARATOR } from "../util/buttonCustomIdFunctions";
|
||||
import { ButtonMenuActions } from "../util/buttonMenuActions";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import { handleModifyRole, handleOpenMenu } from "../util/buttonActionHandlers";
|
||||
import { BUTTON_CONTEXT_SEPARATOR, resolveStatefulCustomId } from "../util/buttonCustomIdFunctions";
|
||||
import { ButtonMenuActions } from "../util/buttonMenuActions";
|
||||
|
||||
const BUTTON_INVALIDATION_TIME = 15 * MINUTES;
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import * as t from "io-ts";
|
||||
import { BasePluginType, typedGuildCommand, typedGuildEventListener } from "knub";
|
||||
import { GuildButtonRoles } from "src/data/GuildButtonRoles";
|
||||
import { tNullable } from "../../utils";
|
||||
import { GuildReactionRoles } from "../../data/GuildReactionRoles";
|
||||
import { GuildSavedMessages } from "../../data/GuildSavedMessages";
|
||||
import { Queue } from "../../Queue";
|
||||
import { tNullable } from "../../utils";
|
||||
|
||||
// These need to be updated every time discord adds/removes a style,
|
||||
// but i cant figure out how to import MessageButtonStyles at runtime
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { MessageButton, MessageActionRow, MessageComponentInteraction, Snowflake } from "discord.js";
|
||||
import { MessageButton, MessageComponentInteraction, Snowflake } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { LogsPlugin } from "../../../plugins/Logs/LogsPlugin";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue