From 7fd60a98f8b131d0ef0ca20d4e73bade4854d398 Mon Sep 17 00:00:00 2001 From: Austin Hellyer Date: Mon, 21 Nov 2016 13:22:07 -0800 Subject: Make Context::channel_id public --- src/client/context.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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, + /// 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, /// The associated connection which dispatched the event handler. /// /// Note that if you are sharding, in relevant terms, this is the shard -- cgit v1.2.3