diff options
| author | Austin Hellyer <[email protected]> | 2016-11-19 20:50:33 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-19 20:50:33 -0800 |
| commit | 66f4acc63163a5f7bd528165ee5fe9ae7d44eb7d (patch) | |
| tree | 357b4f4632138b6e0270c177cccd445b1c4f2d98 /src/model/user.rs | |
| parent | Fix type errors for non-framework builds (diff) | |
| download | serenity-66f4acc63163a5f7bd528165ee5fe9ae7d44eb7d.tar.xz serenity-66f4acc63163a5f7bd528165ee5fe9ae7d44eb7d.zip | |
Rename state methods from find_ to get_
For consistency with the rest of the library, rename the methods
prefixed with `find_` to `get_`.
The past logic was that items are "found", as they may or may not exist.
With get, the expectation is that it is _always_ there, i.e. over REST.
However, this is inconsistent, and "get"ting over REST can fail for
other reasons.
Diffstat (limited to 'src/model/user.rs')
| -rw-r--r-- | src/model/user.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/user.rs b/src/model/user.rs index e4699ce..efe41fd 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -118,7 +118,7 @@ impl User { feature_state! {{ let state = STATE.lock().unwrap(); - return state.find_role(guild_id, role_id).is_some(); + return state.get_role(guild_id, role_id).is_some(); } else { return true; }} |