3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-07 16:05:01 +00:00

feat: Add user context menu commands for notes, warns, mutes and bans

This commit is contained in:
Obliie 2023-07-15 22:51:41 +01:00
parent 24b11800f5
commit 454bec6c9f
No known key found for this signature in database
GPG key ID: 9189A18F0D5B547E
11 changed files with 135 additions and 39 deletions

View file

@ -8,7 +8,11 @@ import { ModActionsPlugin } from "../ModActions/ModActionsPlugin";
import { MutesPlugin } from "../Mutes/MutesPlugin";
import { UtilityPlugin } from "../Utility/UtilityPlugin";
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
import { ModMenuCmd } from "./commands/ModMenuCmd";
import { BanCmd } from "./commands/BanUserCtxCmd";
import { ModMenuCmd } from "./commands/ModMenuUserCtxCmd";
import { MuteCmd } from "./commands/MuteUserCtxCmd";
import { NoteCmd } from "./commands/NoteUserCtxCmd";
import { WarnCmd } from "./commands/WarnUserCtxCmd";
import { ConfigSchema, ContextMenuPluginType } from "./types";
const defaultOptions: PluginOptions<ContextMenuPluginType> = {
@ -45,7 +49,7 @@ export const ContextMenuPlugin = zeppelinGuildPlugin<ContextMenuPluginType>()({
defaultOptions,
contextMenuCommands: [ModMenuCmd],
contextMenuCommands: [ModMenuCmd, NoteCmd, WarnCmd, MuteCmd, BanCmd],
beforeLoad(pluginData) {
const { state, guild } = pluginData;