aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-26 04:01:36 +0200
committeracdenisSK <[email protected]>2017-07-26 04:01:36 +0200
commitfdbfbe098c9d59000c234a0893496751744fd31e (patch)
tree83f07bba3c89fd2dfdb67beca1e6304452ec2aec /src/model
parentAdd a util function for checking if a message was sent by the bot or someone ... (diff)
downloadserenity-fdbfbe098c9d59000c234a0893496751744fd31e.tar.xz
serenity-fdbfbe098c9d59000c234a0893496751744fd31e.zip
Actually, rename it to "is_own" instead
Diffstat (limited to 'src/model')
-rw-r--r--src/model/channel/message.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/message.rs b/src/model/channel/message.rs
index 3298305..f0587a7 100644
--- a/src/model/channel/message.rs
+++ b/src/model/channel/message.rs
@@ -117,7 +117,7 @@ impl Message {
/// A util function for determining whether this message was sent by someone else, or the bot.
#[cfg(all(feature="cache", feature="utils"))]
- pub fn is_current_user(&self) -> bool {
+ pub fn is_own(&self) -> bool {
self.author.id == CACHE.read().unwrap().id
}