mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +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 { GuildCases } from "../../data/GuildCases";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
|
@ -6,7 +6,7 @@ import { GuildMutes } from "../../data/GuildMutes";
|
|||
import { GuildTempbans } from "../../data/GuildTempbans";
|
||||
import { mapToPublicFn } from "../../pluginUtils";
|
||||
import { Queue } from "../../Queue";
|
||||
import { MINUTES, trimPluginDescription, UnknownUser } from "../../utils";
|
||||
import { MINUTES, trimPluginDescription } from "../../utils";
|
||||
import { CasesPlugin } from "../Cases/CasesPlugin";
|
||||
import { MutesPlugin } from "../Mutes/MutesPlugin";
|
||||
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
||||
|
@ -84,7 +84,6 @@ const defaultOptions = {
|
|||
can_deletecase: false,
|
||||
can_act_as_other: false,
|
||||
create_cases_for_manual_actions: true,
|
||||
reason_aliases: {},
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
@ -156,8 +155,8 @@ export const ModActionsPlugin = zeppelinGuildPlugin<ModActionsPluginType>()({
|
|||
|
||||
public: {
|
||||
warnMember(pluginData) {
|
||||
return (reason: string, member: GuildMember | null, user?: User | null, warnOptions?: WarnOptions) => {
|
||||
warnMember(pluginData, reason, member, user, warnOptions);
|
||||
return (member: GuildMember, reason: string, warnOptions?: 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
|
||||
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();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue