3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix several flag options expecting a value

This commit is contained in:
Dragory 2019-10-11 04:54:05 +03:00
parent f921548024
commit c7d24edc1d
3 changed files with 14 additions and 5 deletions

View file

@ -1487,13 +1487,13 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
options: [
{
name: "expand",
type: "boolean",
shortcut: "e",
flag: true,
},
{
name: "hidden",
type: "boolean",
shortcut: "h",
flag: true,
},
],
extra: {

View file

@ -329,7 +329,16 @@ export class MutesPlugin extends ZeppelinPlugin<TConfigSchema> {
}
@d.command("mutes", [], {
options: [{ name: "age", type: "delay" }, { name: "left", type: "boolean" }],
options: [
{
name: "age",
type: "delay",
},
{
name: "left",
flag: true,
},
],
})
@d.permission("can_view_list")
protected async muteListCmd(msg: Message, args: { age?: number; left?: boolean }) {

View file

@ -370,13 +370,13 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
},
{
name: "case-sensitive",
type: "boolean",
shortcut: "cs",
flag: true,
},
{
name: "export",
type: "boolean",
shortcut: "e",
flag: true,
},
],
})