aboutsummaryrefslogtreecommitdiff
path: root/src/model/user.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/user.rs')
-rw-r--r--src/model/user.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index fb6acf0..a214b3d 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -176,10 +176,10 @@ impl CurrentUser {
/// #
/// # let mut cache = CACHE.write().unwrap();
///
- /// use serenity::model::permissions::*;
+ /// use serenity::model::Permissions;
///
/// // assuming the cache has been unlocked
- /// let url = match cache.user.invite_url(READ_MESSAGES | SEND_MESSAGES | EMBED_LINKS) {
+ /// let url = match cache.user.invite_url(Permissions::READ_MESSAGES | Permissions::SEND_MESSAGES | Permissions::EMBED_LINKS) {
/// Ok(v) => v,
/// Err(why) => {
/// println!("Error getting invite url: {:?}", why);