Formatting and initial ButtonRoles DB work
This commit is contained in:
parent
6ac9d2f2a2
commit
5efdf5ce95
108 changed files with 253 additions and 303 deletions
|
@ -22,7 +22,6 @@ import { onMutesEvent } from "./functions/onMutesEvent";
|
|||
import { unmuteUser } from "./functions/unmuteUser";
|
||||
import { ConfigSchema, MutesPluginType } from "./types";
|
||||
|
||||
|
||||
const defaultOptions = {
|
||||
config: {
|
||||
mute_role: null,
|
||||
|
|
|
@ -2,7 +2,6 @@ import { User } from "discord.js";
|
|||
import { sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { mutesCmd } from "../types";
|
||||
|
||||
|
||||
export const ClearBannedMutesCmd = mutesCmd({
|
||||
trigger: "clear_banned_mutes",
|
||||
permission: "can_cleanup",
|
||||
|
|
|
@ -4,7 +4,6 @@ import { resolveMember, stripObjectToScalars, UnknownUser } from "../../../utils
|
|||
import { memberRolesLock } from "../../../utils/lockNameHelpers";
|
||||
import { MutesPluginType } from "../types";
|
||||
|
||||
|
||||
export async function clearExpiredMutes(pluginData: GuildPluginData<MutesPluginType>) {
|
||||
const expiredMutes = await pluginData.state.mutes.getExpiredMutes();
|
||||
for (const mute of expiredMutes) {
|
||||
|
|
|
@ -8,23 +8,18 @@ import { LogsPlugin } from "../../../plugins/Logs/LogsPlugin";
|
|||
import { ERRORS, RecoverablePluginError } from "../../../RecoverablePluginError";
|
||||
import { renderTemplate } from "../../../templateFormatter";
|
||||
import {
|
||||
notifyUser,
|
||||
|
||||
|
||||
|
||||
|
||||
resolveMember, resolveUser,
|
||||
stripObjectToScalars,
|
||||
ucfirst,
|
||||
|
||||
|
||||
UserNotificationMethod, UserNotificationResult
|
||||
notifyUser,
|
||||
resolveMember,
|
||||
resolveUser,
|
||||
stripObjectToScalars,
|
||||
ucfirst,
|
||||
UserNotificationMethod,
|
||||
UserNotificationResult,
|
||||
} from "../../../utils";
|
||||
import { muteLock } from "../../../utils/lockNameHelpers";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin";
|
||||
import { MuteOptions, MutesPluginType } from "../types";
|
||||
|
||||
|
||||
export async function muteUser(
|
||||
pluginData: GuildPluginData<MutesPluginType>,
|
||||
userId: string,
|
||||
|
|
|
@ -9,7 +9,6 @@ import { CaseArgs } from "../../Cases/types";
|
|||
import { MutesPluginType, UnmuteResult } from "../types";
|
||||
import { memberHasMutedRole } from "./memberHasMutedRole";
|
||||
|
||||
|
||||
export async function unmuteUser(
|
||||
pluginData: GuildPluginData<MutesPluginType>,
|
||||
userId: string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue