set the proper perms for both the slash and prefix commands in the level.rs
This commit is contained in:
@@ -46,7 +46,8 @@ struct LeaderboardEntry {
|
||||
slash_command,
|
||||
prefix_command,
|
||||
guild_only,
|
||||
default_member_permissions = "MANAGE_GUILD"
|
||||
default_member_permissions = "MANAGE_GUILD",
|
||||
required_permissions = "MANAGE_GUILD"
|
||||
)]
|
||||
pub async fn set_level_roles(
|
||||
ctx: Context<'_>,
|
||||
@@ -162,7 +163,8 @@ pub async fn get_level_roles(ctx: Context<'_>) -> Result<(), Error> {
|
||||
slash_command,
|
||||
prefix_command,
|
||||
guild_only,
|
||||
default_member_permissions = "MANAGE_GUILD"
|
||||
default_member_permissions = "MANAGE_GUILD",
|
||||
required_permissions = "MANAGE_GUILD"
|
||||
)]
|
||||
pub async fn set_levelup_message_channel(
|
||||
ctx: Context<'_>,
|
||||
@@ -199,7 +201,8 @@ pub async fn set_levelup_message_channel(
|
||||
slash_command,
|
||||
prefix_command,
|
||||
guild_only,
|
||||
default_member_permissions = "MANAGE_GUILD"
|
||||
default_member_permissions = "MANAGE_GUILD",
|
||||
required_permissions = "MANAGE_GUILD"
|
||||
)]
|
||||
pub async fn set_levelup_message(
|
||||
ctx: Context<'_>,
|
||||
@@ -227,7 +230,8 @@ pub async fn set_levelup_message(
|
||||
slash_command,
|
||||
prefix_command,
|
||||
guild_only,
|
||||
default_member_permissions = "MANAGE_GUILD"
|
||||
default_member_permissions = "MANAGE_GUILD",
|
||||
required_permissions = "MANAGE_GUILD"
|
||||
)]
|
||||
pub async fn levelup_role_bridger(
|
||||
ctx: Context<'_>,
|
||||
|
||||
Reference in New Issue
Block a user