mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-15 06:05:03 +00:00
20 lines
591 B
TypeScript
20 lines
591 B
TypeScript
import { GuildPluginData } from "knub";
|
|
import { LogType } from "../../../data/LogType.js";
|
|
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter.js";
|
|
import { LogsPluginType } from "../types.js";
|
|
import { log } from "../util/log.js";
|
|
|
|
export interface LogSetAntiraidAutoData {
|
|
level: string;
|
|
}
|
|
|
|
export function logSetAntiraidAuto(pluginData: GuildPluginData<LogsPluginType>, data: LogSetAntiraidAutoData) {
|
|
return log(
|
|
pluginData,
|
|
LogType.SET_ANTIRAID_AUTO,
|
|
createTypedTemplateSafeValueContainer({
|
|
level: data.level,
|
|
}),
|
|
{},
|
|
);
|
|
}
|