mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 21:35:02 +00:00
Improve antiraid trigger automod logs
This commit is contained in:
parent
3afc95c858
commit
2e5224124f
3 changed files with 10 additions and 3 deletions
|
@ -1,13 +1,19 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { AutomodContext, AutomodPluginType } from "../types";
|
||||
import { runAutomod } from "../functions/runAutomod";
|
||||
import { User } from "eris";
|
||||
|
||||
export async function runAutomodOnAntiraidLevel(pluginData: GuildPluginData<AutomodPluginType>, level: string | null) {
|
||||
export async function runAutomodOnAntiraidLevel(
|
||||
pluginData: GuildPluginData<AutomodPluginType>,
|
||||
level: string | null,
|
||||
user?: User,
|
||||
) {
|
||||
const context: AutomodContext = {
|
||||
timestamp: Date.now(),
|
||||
antiraid: {
|
||||
level,
|
||||
},
|
||||
user,
|
||||
};
|
||||
|
||||
pluginData.state.queue.add(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue