Add member_leave automod trigger

At least i think so - cant test it until knub changes are done
This commit is contained in:
Dark 2021-06-17 02:30:12 +02:00
parent 2700f4e389
commit f9dd82f201
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
6 changed files with 49 additions and 2 deletions

View file

@ -0,0 +1,20 @@
import * as t from "io-ts";
import { automodTrigger } from "../helpers";
export const MemberLeaveTrigger = automodTrigger<unknown>()({
configType: t.type({}),
defaultConfig: {},
async match({ pluginData, context, triggerConfig }) {
if (!context.joined || !context.member) {
return;
}
return {};
},
renderMatchInformation({ pluginData, contexts, triggerConfig }) {
return "";
},
});