3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Merge branch 'master' of github.com:Dragory/ZeppelinBot

This commit is contained in:
Dragory 2021-04-28 22:40:02 +03:00
commit 3d549b4e78
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
27 changed files with 208 additions and 93 deletions

View file

@ -241,7 +241,7 @@ export async function muteUser(
lock.unlock();
pluginData.state.events.emit("mute", user.id, reason);
pluginData.state.events.emit("mute", user.id, reason, muteOptions.isAutomodAction);
return {
case: theCase,

View file

@ -34,7 +34,7 @@ export const ConfigSchema = t.type({
export type TConfigSchema = t.TypeOf<typeof ConfigSchema>;
export interface MutesEvents {
mute: (userId: string, reason?: string) => void;
mute: (userId: string, reason?: string, isAutomodAction?: boolean) => void;
unmute: (userId: string, reason?: string) => void;
}
@ -75,6 +75,7 @@ export type UnmuteResult = {
export interface MuteOptions {
caseArgs?: Partial<CaseArgs>;
contactMethods?: UserNotificationMethod[];
isAutomodAction?: boolean;
}
export const mutesCmd = guildCommand<MutesPluginType>();