Add permission checks
All checks were successful
Build and push container image / build (push) Successful in 10m20s
All checks were successful
Build and push container image / build (push) Successful in 10m20s
This commit is contained in:
parent
bb36999f93
commit
b454683c6d
@ -21,14 +21,21 @@ use poise::{
|
|||||||
ChoiceParameter
|
ChoiceParameter
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug, poise::ChoiceParameter)]
|
#[derive(Debug, ChoiceParameter)]
|
||||||
enum GameNames {
|
enum GameNames {
|
||||||
#[name = "Minecraft"]
|
#[name = "Minecraft"]
|
||||||
Minecraft
|
Minecraft
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Manage the game servers for this guild
|
/// Manage the game servers for this guild
|
||||||
#[poise::command(slash_command, subcommands("add", "remove", "update", "list"), subcommand_required, guild_only)]
|
#[poise::command(
|
||||||
|
slash_command,
|
||||||
|
subcommands("add", "remove", "update", "list"),
|
||||||
|
subcommand_required,
|
||||||
|
guild_only,
|
||||||
|
default_member_permissions = "MANAGE_GUILD",
|
||||||
|
required_permissions = "MANAGE_GUILD" // No clue if this is needed or not. Just leaving it here for now
|
||||||
|
)]
|
||||||
pub async fn gameserver(_: poise::Context<'_, (), Error>) -> Result<(), Error> {
|
pub async fn gameserver(_: poise::Context<'_, (), Error>) -> Result<(), Error> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user