From 0c93425ee77c3cec28a1f1061bc2089f839febeb Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 16 Nov 2022 21:42:16 -0800 Subject: [PATCH] Temporarily remove owner slash commands --- src/commands/owner.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/owner.rs b/src/commands/owner.rs index 8651677..0f08352 100644 --- a/src/commands/owner.rs +++ b/src/commands/owner.rs @@ -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 .