Rename update to modify

This commit is contained in:
bitfl0wer 2023-08-16 14:05:51 +02:00
parent 9559b15b8a
commit 7147ac5daf
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 2 additions and 2 deletions

View File

@ -120,13 +120,13 @@ impl types::RoleObject {
.await
}
/// Updates a role in a guild.
/// Modifies a role in a guild.
///
/// Requires the [`MANAGE_ROLES`](crate::types::PermissionFlags::MANAGE_ROLES) permission.
///
/// # Reference
/// See <https://discord-userdoccers.vercel.app/resources/guild#modify-guild-role>
pub async fn update(
pub async fn modify(
user: &mut UserMeta,
guild_id: Snowflake,
role_id: Snowflake,