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:
parent
7eff7bcaa6
commit
cbec6101e0
27 changed files with 168 additions and 121 deletions
|
@ -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;
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -13,7 +13,7 @@ export async function updateCase(
|
|||
pluginData: GuildPluginData<ModActionsPluginType>,
|
||||
context: Message | ChatInputCommandInteraction,
|
||||
author: User,
|
||||
caseNumber?: number,
|
||||
caseNumber?: number | null,
|
||||
note = "",
|
||||
attachments: Attachment[] = [],
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue