aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/reaction.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/channel/reaction.rs')
-rw-r--r--src/model/channel/reaction.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/model/channel/reaction.rs b/src/model/channel/reaction.rs
index 976ea3d..8edc2e9 100644
--- a/src/model/channel/reaction.rs
+++ b/src/model/channel/reaction.rs
@@ -106,20 +106,12 @@ impl Reaction {
after: Option<U>)
-> Result<Vec<User>>
where R: Into<ReactionType>, U: Into<UserId> {
- self._users(reaction_type.into(), limit, after.map(|u| u.into()))
- }
-
- fn _users(&self,
- reaction_type: ReactionType,
- limit: Option<u8>,
- after: Option<UserId>)
- -> Result<Vec<User>> {
http::get_reaction_users(
self.channel_id.0,
self.message_id.0,
- &reaction_type,
+ &reaction_type.into(),
limit.unwrap_or(50),
- after.map(|u| u.0),
+ after.map(|u| u.into().0),
)
}
}