diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/context.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/context.rs b/src/client/context.rs index e2d9fe2..b1cc57f 100644 --- a/src/client/context.rs +++ b/src/client/context.rs @@ -76,7 +76,11 @@ use super::STATE; /// [`set_game`]: #method.set_game #[derive(Clone)] pub struct Context { - channel_id: Option<ChannelId>, + /// The Id of the relevant channel, if there is one. This is present on the + /// [`on_message`] handler, for example. + /// + /// [`on_message`]: struct.Client.html#method.on_message + pub channel_id: Option<ChannelId>, /// The associated connection which dispatched the event handler. /// /// Note that if you are sharding, in relevant terms, this is the shard |