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:
parent
f921548024
commit
c7d24edc1d
3 changed files with 14 additions and 5 deletions
|
@ -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: {
|
||||
|
|
|
@ -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 }) {
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue