mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-07 16:05:01 +00:00
Merge branch 'master' of github.com:ZeppelinBot/Zeppelin into feat/application-commands
This commit is contained in:
commit
2c0e4b37ca
235 changed files with 3464 additions and 4799 deletions
|
@ -1,6 +1,5 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { GuildCases } from "../../data/GuildCases";
|
||||
import { makeIoTsConfigParser } from "../../pluginUtils";
|
||||
import { trimPluginDescription } from "../../utils";
|
||||
import { CasesPlugin } from "../Cases/CasesPlugin";
|
||||
import { LogsPlugin } from "../Logs/LogsPlugin";
|
||||
|
@ -14,7 +13,7 @@ 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";
|
||||
import { ContextMenuPluginType, zContextMenusConfig } from "./types";
|
||||
|
||||
const defaultOptions: PluginOptions<ContextMenuPluginType> = {
|
||||
config: {
|
||||
|
@ -42,12 +41,11 @@ export const ContextMenuPlugin = zeppelinGuildPlugin<ContextMenuPluginType>()({
|
|||
description: trimPluginDescription(`
|
||||
This plugin provides command shortcuts via context menus
|
||||
`),
|
||||
configSchema: ConfigSchema,
|
||||
configSchema: zContextMenusConfig,
|
||||
},
|
||||
|
||||
dependencies: () => [CasesPlugin, MutesPlugin, ModActionsPlugin, LogsPlugin, UtilityPlugin],
|
||||
configParser: makeIoTsConfigParser(ConfigSchema),
|
||||
|
||||
configParser: (input) => zContextMenusConfig.parse(input),
|
||||
defaultOptions,
|
||||
|
||||
contextMenuCommands: [ModMenuCmd, NoteCmd, WarnCmd, MuteCmd, BanCmd, CleanCmd],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue