mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
implement rest of api (tokens) commands
This commit is contained in:
parent
d2807f402d
commit
c42385f01c
3 changed files with 11 additions and 5 deletions
|
|
@ -1 +1,9 @@
|
|||
use super::*;
|
||||
|
||||
pub fn cmds() -> impl Iterator<Item = Command> {
|
||||
[
|
||||
command!("token" => "token_display"),
|
||||
command!("token", ("refresh", ["renew", "regen", "reroll"]) => "token_refresh"),
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ pub fn all() -> impl Iterator<Item = Command> {
|
|||
.chain(fun::cmds())
|
||||
.chain(switch::cmds())
|
||||
.chain(random::cmds())
|
||||
.chain(api::cmds())
|
||||
.map(|cmd| {
|
||||
cmd.hidden_flag(("plaintext", ["pt"]))
|
||||
.hidden_flag(("raw", ["r"]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue