feat: replace owner by administrator right
This commit is contained in:
parent
471482d6f8
commit
be6c76c00f
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user