Fix several flag options expecting a value
This commit is contained in:
parent
f921548024
commit
c7d24edc1d
3 changed files with 14 additions and 5 deletions
|
@ -1487,13 +1487,13 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "expand",
|
name: "expand",
|
||||||
type: "boolean",
|
|
||||||
shortcut: "e",
|
shortcut: "e",
|
||||||
|
flag: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "hidden",
|
name: "hidden",
|
||||||
type: "boolean",
|
|
||||||
shortcut: "h",
|
shortcut: "h",
|
||||||
|
flag: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extra: {
|
extra: {
|
||||||
|
|
|
@ -329,7 +329,16 @@ export class MutesPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@d.command("mutes", [], {
|
@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")
|
@d.permission("can_view_list")
|
||||||
protected async muteListCmd(msg: Message, args: { age?: number; left?: boolean }) {
|
protected async muteListCmd(msg: Message, args: { age?: number; left?: boolean }) {
|
||||||
|
|
|
@ -370,13 +370,13 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "case-sensitive",
|
name: "case-sensitive",
|
||||||
type: "boolean",
|
|
||||||
shortcut: "cs",
|
shortcut: "cs",
|
||||||
|
flag: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "export",
|
name: "export",
|
||||||
type: "boolean",
|
|
||||||
shortcut: "e",
|
shortcut: "e",
|
||||||
|
flag: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue