mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update ModActionsPlugin.ts
This commit is contained in:
parent
0128f2be6a
commit
0e574e3d6c
1 changed files with 4 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { GuildMember, Message, PartialUser, Snowflake, User } from "discord.js";
|
import { GuildMember, Message, Snowflake } from "discord.js";
|
||||||
import { EventEmitter } from "events";
|
import { EventEmitter } from "events";
|
||||||
import { GuildCases } from "../../data/GuildCases";
|
import { GuildCases } from "../../data/GuildCases";
|
||||||
import { GuildLogs } from "../../data/GuildLogs";
|
import { GuildLogs } from "../../data/GuildLogs";
|
||||||
|
@ -6,7 +6,7 @@ import { GuildMutes } from "../../data/GuildMutes";
|
||||||
import { GuildTempbans } from "../../data/GuildTempbans";
|
import { GuildTempbans } from "../../data/GuildTempbans";
|
||||||
import { mapToPublicFn } from "../../pluginUtils";
|
import { mapToPublicFn } from "../../pluginUtils";
|
||||||
import { Queue } from "../../Queue";
|
import { Queue } from "../../Queue";
|
||||||
import { MINUTES, trimPluginDescription, UnknownUser } from "../../utils";
|
import { MINUTES, trimPluginDescription } from "../../utils";
|
||||||
import { CasesPlugin } from "../Cases/CasesPlugin";
|
import { CasesPlugin } from "../Cases/CasesPlugin";
|
||||||
import { MutesPlugin } from "../Mutes/MutesPlugin";
|
import { MutesPlugin } from "../Mutes/MutesPlugin";
|
||||||
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
||||||
|
@ -84,7 +84,6 @@ const defaultOptions = {
|
||||||
can_deletecase: false,
|
can_deletecase: false,
|
||||||
can_act_as_other: false,
|
can_act_as_other: false,
|
||||||
create_cases_for_manual_actions: true,
|
create_cases_for_manual_actions: true,
|
||||||
reason_aliases: {},
|
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
|
@ -156,8 +155,8 @@ export const ModActionsPlugin = zeppelinGuildPlugin<ModActionsPluginType>()({
|
||||||
|
|
||||||
public: {
|
public: {
|
||||||
warnMember(pluginData) {
|
warnMember(pluginData) {
|
||||||
return (reason: string, member: GuildMember | null, user?: User | null, warnOptions?: WarnOptions) => {
|
return (member: GuildMember, reason: string, warnOptions?: WarnOptions) => {
|
||||||
warnMember(pluginData, reason, member, user, warnOptions);
|
warnMember(pluginData, member, reason, warnOptions);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -206,9 +205,6 @@ export const ModActionsPlugin = zeppelinGuildPlugin<ModActionsPluginType>()({
|
||||||
// so we're giving each massban 15 minutes to complete before launching the next massban
|
// so we're giving each massban 15 minutes to complete before launching the next massban
|
||||||
state.massbanQueue = new Queue(15 * MINUTES);
|
state.massbanQueue = new Queue(15 * MINUTES);
|
||||||
|
|
||||||
// Same goes for masswarns, since they have to send a lot of DMs
|
|
||||||
state.masswarnQueue = new Queue(15 * MINUTES);
|
|
||||||
|
|
||||||
state.events = new EventEmitter();
|
state.events = new EventEmitter();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue