Add existing changes from worktree with build fix
This commit is contained in:
parent
72cfe7b17b
commit
9d1c124ba2
|
|
@ -4,6 +4,7 @@ use poise::Command;
|
||||||
|
|
||||||
pub mod custom_responses;
|
pub mod custom_responses;
|
||||||
pub mod ranks;
|
pub mod ranks;
|
||||||
|
pub mod moderation;
|
||||||
|
|
||||||
pub fn collect_commands() -> Vec<Command<ManifoldData, ManifoldError>> {
|
pub fn collect_commands() -> Vec<Command<ManifoldData, ManifoldError>> {
|
||||||
commands().into_iter()
|
commands().into_iter()
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
use manifold::error::{ManifoldError, ManifoldResult};
|
||||||
|
use manifold::{ManifoldContext, ManifoldData};
|
||||||
|
use poise::serenity_prelude as serenity;
|
||||||
|
|
||||||
|
#[poise::command(slash_command, prefix_command, required_permissions = "MODERATE_MEMBERS")]
|
||||||
|
async fn void_user(ctx: ManifoldContext<'_>, target: serenity::User) -> ManifoldResult<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
#[poise::command(slash_command, prefix_command, required_permissions = "MODERATE_MEMBERS")]
|
||||||
|
async fn airlock_user(ctx: ManifoldContext<'_>, target: serenity::User) -> ManifoldResult<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
#[poise::command(slash_command, prefix_command, required_permissions = "MODERATE_MEMBERS")]
|
||||||
|
async fn unvoid_user(ctx: ManifoldContext<'_>, target: serenity::User) -> ManifoldResult<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
#[poise::command(slash_command, prefix_command, required_permissions = "MODERATE_MEMBERS")]
|
||||||
|
async fn record_chronicle(ctx: ManifoldContext<'_>, target: serenity::User) -> ManifoldResult<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn commands() -> [poise::Command<ManifoldData, ManifoldError>; 4] {
|
||||||
|
[void_user(), unvoid_user(), airlock_user(), record_chronicle()]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue