diff --git a/src/commands/bots.rs b/src/commands/bots.rs index 0557924..ed548e7 100644 --- a/src/commands/bots.rs +++ b/src/commands/bots.rs @@ -2,7 +2,7 @@ use crate::{Context, Error}; use crate::commands::{command_helper, helpstart}; use std::string::String; -#[poise::command(slash_command)] +#[poise::command(slash_command,guild_only)] pub(crate) async fn bots( ctx: Context<'_>, diff --git a/src/commands/helpstart.rs b/src/commands/helpstart.rs index e7b9c97..06a656e 100644 --- a/src/commands/helpstart.rs +++ b/src/commands/helpstart.rs @@ -3,7 +3,7 @@ use crate::commands::command_helper; static mut BOTS_AVAILABLE: u8 = 0; -#[poise::command(slash_command)] +#[poise::command(slash_command,guild_only)] pub(crate) async fn helpstart( ctx: Context<'_>, @@ -27,7 +27,7 @@ pub(crate) async fn helpstart( }; format!( "<@&1008075054971621448>\nneed: {}" - , (needed_players - bots) + , needed_players - bots ) }; diff --git a/src/commands/lfg.rs b/src/commands/lfg.rs index 06abc6e..7570630 100644 --- a/src/commands/lfg.rs +++ b/src/commands/lfg.rs @@ -38,7 +38,7 @@ pub enum Difficulty { #[name = "R.I.P."] Rip, } -#[poise::command(slash_command)] +#[poise::command(slash_command,guild_only)] pub(crate) async fn lfg( ctx: Context<'_>,