3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-14 13:55:03 +00:00

Used guildPluginSlashCommand instead of raw blueprints

This commit is contained in:
Lily Bergonzat 2024-03-05 05:05:03 +01:00
parent 7eff7bcaa6
commit cbec6101e0
27 changed files with 168 additions and 121 deletions

View file

@ -20,7 +20,7 @@ export async function actualKickCmd(
attachments: Attachment[],
mod: GuildMember,
contactMethods?: UserNotificationMethod[],
clean?: boolean,
clean?: boolean | null,
) {
if (await handleAttachmentLinkDetectionAndGetRestriction(pluginData, context, reason)) {
return;

View file

@ -29,7 +29,7 @@ export async function actualMuteCmd(
mod: GuildMember,
ppId?: string,
time?: number,
reason?: string,
reason?: string | null,
contactMethods?: UserNotificationMethod[],
) {
if (await handleAttachmentLinkDetectionAndGetRestriction(pluginData, context, reason)) {

View file

@ -16,7 +16,7 @@ export async function actualUnmuteCmd(
mod: GuildMember,
ppId?: string,
time?: number,
reason?: string,
reason?: string | null,
) {
if (await handleAttachmentLinkDetectionAndGetRestriction(pluginData, context, reason)) {
return;

View file

@ -2,8 +2,8 @@ import { GuildTextBasedChannel } from "discord.js";
import { disableUserNotificationStrings, UserNotificationMethod } from "../../../utils";
export function readContactMethodsFromArgs(args: {
notify?: string;
"notify-channel"?: GuildTextBasedChannel;
notify?: string | null;
"notify-channel"?: GuildTextBasedChannel | null;
}): null | UserNotificationMethod[] {
if (args.notify) {
if (args.notify === "dm") {

View file

@ -13,7 +13,7 @@ export async function updateCase(
pluginData: GuildPluginData<ModActionsPluginType>,
context: Message | ChatInputCommandInteraction,
author: User,
caseNumber?: number,
caseNumber?: number | null,
note = "",
attachments: Attachment[] = [],
) {