aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/model/user.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index 4a10566..227fadf 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -561,19 +561,20 @@ impl User {
/// given [`Role`].
///
/// Three forms of data may be passed in to the guild parameter: either a
- /// [`Guild`] itself, a [`GuildId`], or a `u64`.
+ /// [`PartialGuild`], a [`GuildId`], or a `u64`.
///
/// # Examples
///
/// Check if a guild has a [`Role`] by Id:
///
/// ```rust,ignore
- /// // Assumes a 'guild' and `role_id` have already been bound
- /// let _ = message.author.has_role(guild, role_id);
+ /// // Assumes a 'guild_id' and `role_id` have already been bound
+ /// let _ = message.author.has_role(guild_id, role_id);
/// ```
///
/// [`Guild`]: struct.Guild.html
/// [`GuildId`]: struct.GuildId.html
+ /// [`PartialGuild`]: struct.PartialGuild.html
/// [`Role`]: struct.Role.html
/// [`Cache`]: ../cache/struct.Cache.html
// no-cache would warn on guild_id.