feat: replace owner by administrator right

This commit is contained in:
Max batleforc 2024-06-28 15:21:49 +02:00
parent 471482d6f8
commit be6c76c00f
No known key found for this signature in database
GPG Key ID: 25D243AB4B6AC9E7

View File

@ -15,7 +15,7 @@ use tracing::instrument;
prefix_command,
category = "server_config",
guild_only = true,
owners_only = true
required_permissions = "ADMINISTRATOR"
)]
pub async fn init(
ctx: Context<'_>,
@ -25,6 +25,7 @@ pub async fn init(
Some(guild) => guild,
None => return Ok(()),
};
let entity_name = ctx.data().entity_name.clone();
let footer = CreateEmbedFooter::new(entity_name.clone());