diff options
| author | acdenisSK <[email protected]> | 2017-07-26 04:01:36 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-26 04:01:36 +0200 |
| commit | fdbfbe098c9d59000c234a0893496751744fd31e (patch) | |
| tree | 83f07bba3c89fd2dfdb67beca1e6304452ec2aec /src/model | |
| parent | Add a util function for checking if a message was sent by the bot or someone ... (diff) | |
| download | serenity-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.rs | 2 |
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 } |