diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/channel.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/model/channel.rs b/src/model/channel.rs index 2724f1e..d769016 100644 --- a/src/model/channel.rs +++ b/src/model/channel.rs @@ -420,6 +420,12 @@ impl Group { } impl Message { + /// True only if message was sent using a webhook. + #[cfg(feature="methods")] + pub fn is_webhook(&self) -> bool { + self.webhook_id.is_some() + } + /// Deletes the message. /// /// **Note**: The logged in user must either be the author of the message or |