From 6683cef92042bb050383cb6bdeab9aec63a0797d Mon Sep 17 00:00:00 2001 From: Stachelbeere1248 Date: Tue, 2 Jan 2024 23:13:50 +0100 Subject: [PATCH] no more dms --- src/commands/bots.rs | 2 +- src/commands/helpstart.rs | 4 ++-- src/commands/lfg.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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<'_>,