mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
implement proxied message and permcheck commands
This commit is contained in:
parent
2b304457cc
commit
e4f38c76a9
19 changed files with 233 additions and 155 deletions
|
|
@ -1 +1,16 @@
|
|||
use super::*;
|
||||
|
||||
pub fn debug() -> (&'static str, [&'static str; 1]) {
|
||||
("debug", ["dbg"])
|
||||
}
|
||||
|
||||
pub fn cmds() -> impl Iterator<Item = Command> {
|
||||
let debug = debug();
|
||||
let perms = ("permissions", ["perms", "permcheck"]);
|
||||
[
|
||||
command!(debug, perms, ("channel", ["ch"]), ChannelRef => "permcheck_channel"),
|
||||
command!(debug, perms, ("guild", ["g"]), GuildRef => "permcheck_guild"),
|
||||
command!(debug, ("proxy", ["proxying", "proxycheck"]), MessageRef => "message_proxy_check"),
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue