Compare commits

..

No commits in common. "db37ee7516b2a213832b9e6d096f75ccff5d08db" and "8ab3d67542001ced0843622a45abaeb8f51e5359" have entirely different histories.

1 changed files with 2 additions and 10 deletions

View File

@ -76,14 +76,6 @@ async fn unignore_channel_for_xp(ctx: ManifoldContext<'_>, channel: serenity::Ch
Ok(()) Ok(())
} }
#[poise::command(slash_command, prefix_command, required_permissions = "ADMINISTRATOR")] pub fn commands() -> [poise::Command<ManifoldData, ManifoldError>; 9] {
async fn send_message(ctx: ManifoldContext<'_>, channel: serenity::ChannelId, message: String) -> ManifoldResult<()> { [void_user(), unvoid_user(), airlock_user(), record_chronicle(), security_record(), add_quarantine_channel(), remove_quarantine_channel(), ignore_channel_for_xp(), unignore_channel_for_xp()]
channel.say(&ctx, message).await?;
ctx.reply(format!("Sent message to channel <#{channel}>", channel=channel)).await?;
Ok(())
}
pub fn commands() -> [poise::Command<ManifoldData, ManifoldError>; 10] {
[void_user(), unvoid_user(), airlock_user(), record_chronicle(), security_record(), add_quarantine_channel(), remove_quarantine_channel(), ignore_channel_for_xp(), unignore_channel_for_xp(), send_message()]
} }