api: triaged rename to get_reaction_users

This commit is contained in:
kozabrada123 2023-12-27 11:20:29 +01:00
parent a3f8a0492b
commit 987d9c16e8
1 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,7 @@ impl ReactionMeta {
///
/// # Reference
/// See <https://discord.com/developers/docs/resources/channel#get-reactions>
// Consider renaming this, maybe get_reaction_users or get_emoji_users
pub async fn get(&self, emoji: &str, user: &mut ChorusUser) -> ChorusResult<Vec<PublicUser>> {
pub async fn get_reaction_users(&self, emoji: &str, user: &mut ChorusUser) -> ChorusResult<Vec<PublicUser>> {
let url = format!(
"{}/channels/{}/messages/{}/reactions/{}",
user.belongs_to.read().unwrap().urls.api,