diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/user.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/user.rs b/src/model/user.rs index 9883bd1..af026ea 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -37,7 +37,7 @@ impl CurrentUser { /// Returns the formatted URL of the user's icon, if one exists. pub fn avatar_url(&self) -> Option<String> { self.avatar.as_ref().map(|av| - format!(cdn!("/avatars/{}/{}.jpg"), self.id, av)) + format!(cdn!("/avatars/{}/{}.jpg"), self.id.0, av)) } /// Edits the current user's profile settings. @@ -101,7 +101,7 @@ impl User { /// Returns the formatted URL of the user's icon, if one exists. pub fn avatar_url(&self) -> Option<String> { self.avatar.as_ref().map(|av| - format!(cdn!("/avatars/{}/{}.jpg"), self.id, av)) + format!(cdn!("/avatars/{}/{}.jpg"), self.id.0, av)) } /// Gets user as `Member` of a guild. |