mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +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
|
@ -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 }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue