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,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_GUILD"
|
default_member_permissions = "MANAGE_GUILD",
|
||||||
|
required_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn set_level_roles(
|
pub async fn set_level_roles(
|
||||||
ctx: Context<'_>,
|
ctx: Context<'_>,
|
||||||
@@ -162,7 +163,8 @@ pub async fn get_level_roles(ctx: Context<'_>) -> Result<(), Error> {
|
|||||||
slash_command,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_GUILD"
|
default_member_permissions = "MANAGE_GUILD",
|
||||||
|
required_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn set_levelup_message_channel(
|
pub async fn set_levelup_message_channel(
|
||||||
ctx: Context<'_>,
|
ctx: Context<'_>,
|
||||||
@@ -199,7 +201,8 @@ pub async fn set_levelup_message_channel(
|
|||||||
slash_command,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_GUILD"
|
default_member_permissions = "MANAGE_GUILD",
|
||||||
|
required_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn set_levelup_message(
|
pub async fn set_levelup_message(
|
||||||
ctx: Context<'_>,
|
ctx: Context<'_>,
|
||||||
@@ -227,7 +230,8 @@ pub async fn set_levelup_message(
|
|||||||
slash_command,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_GUILD"
|
default_member_permissions = "MANAGE_GUILD",
|
||||||
|
required_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn levelup_role_bridger(
|
pub async fn levelup_role_bridger(
|
||||||
ctx: Context<'_>,
|
ctx: Context<'_>,
|
||||||
|
|||||||
Reference in New Issue
Block a user