Temporarily remove owner slash commands

late-submissions
Elnu 1 year ago
parent fc9a9a9d49
commit 0c93425ee7

@ -9,7 +9,7 @@ use std::env;
use crate::utils::*;
#[command(prefix_command, slash_command, hide_in_help, ephemeral, owners_only)]
#[command(prefix_command, hide_in_help, ephemeral, owners_only)]
pub async fn sleep(ctx: Context<'_>) -> Result<(), crate::Error> {
ctx.say("Good night!").await?;
ctx.framework()
@ -21,7 +21,7 @@ pub async fn sleep(ctx: Context<'_>) -> Result<(), crate::Error> {
Ok(())
}
#[command(prefix_command, slash_command, hide_in_help, ephemeral, owners_only)]
#[command(prefix_command, hide_in_help, ephemeral, owners_only)]
pub async fn setsubmissionchannel(ctx: Context<'_>) -> Result<(), Error> {
let mut guild_data = get_guild_data();
let guild = ctx.guild_id().unwrap().as_u64().to_string();
@ -47,7 +47,7 @@ pub async fn setsubmissionchannel(ctx: Context<'_>) -> Result<(), Error> {
Ok(())
}
#[command(prefix_command, slash_command, hide_in_help, ephemeral, owners_only)]
#[command(prefix_command, hide_in_help, ephemeral, owners_only)]
pub async fn setsuggestionchannel(ctx: Context<'_>) -> Result<(), Error> {
let channel = ctx.channel_id().as_u64().to_string();
let message = format!("Submission channel set to <#{}>.", channel);
@ -62,7 +62,7 @@ pub async fn setsuggestionchannel(ctx: Context<'_>) -> Result<(), Error> {
Ok(())
}
#[command(prefix_command, slash_command, hide_in_help, ephemeral, owners_only)]
#[command(prefix_command, hide_in_help, ephemeral, owners_only)]
#[allow(non_snake_case)]
pub async fn setannouncementrole(
ctx: Context<'_>,
@ -86,7 +86,7 @@ pub async fn setannouncementrole(
Ok(())
}
#[command(prefix_command, slash_command, hide_in_help, ephemeral, owners_only)]
#[command(prefix_command, hide_in_help, ephemeral, owners_only)]
pub async fn announce(
ctx: Context<'_>,
#[description = "Announcement text"] announcement: String,
@ -94,7 +94,7 @@ pub async fn announce(
send(ctx, &announcement, true, false).await
}
#[command(prefix_command, slash_command, hide_in_help, ephemeral, owners_only)]
#[command(prefix_command, hide_in_help, ephemeral, owners_only)]
pub async fn announcechallenge(ctx: Context<'_>) -> Result<(), Error> {
let challenge_number = get_challenge_number();
let message = format!("Welcome to the **{n}{th}** weekly **Tegaki Tuesday** () handwriting challenge! :pen_fountain: The prompt is available in both Japanese and English on the website at <https://tegakituesday.com/{n}>.

Loading…
Cancel
Save