mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Add typings, comment magic numbers
This commit is contained in:
parent
99c8dbabb7
commit
9a5e911cf2
5 changed files with 18 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
import { ContextMenuInteraction } from "discord.js";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { ModActionsPlugin } from "src/plugins/ModActions/ModActionsPlugin";
|
||||
|
@ -10,7 +11,11 @@ import { LogsPlugin } from "../../Logs/LogsPlugin";
|
|||
import { MutesPlugin } from "../../Mutes/MutesPlugin";
|
||||
import { ContextMenuPluginType } from "../types";
|
||||
|
||||
export async function muteAction(pluginData: GuildPluginData<ContextMenuPluginType>, duration, interaction) {
|
||||
export async function muteAction(
|
||||
pluginData: GuildPluginData<ContextMenuPluginType>,
|
||||
duration: string | undefined,
|
||||
interaction: ContextMenuInteraction,
|
||||
) {
|
||||
interaction.deferReply({ ephemeral: true });
|
||||
const executingMember = await pluginData.guild.members.fetch(interaction.user.id);
|
||||
const userCfg = await pluginData.config.getMatchingConfig({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue