aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-21 13:22:07 -0800
committerAustin Hellyer <[email protected]>2016-11-21 13:22:07 -0800
commit7fd60a98f8b131d0ef0ca20d4e73bade4854d398 (patch)
tree60b4c421f37ad791ea5e953203d8cd8df1c9b1df /src/client
parentAdd framework command named arguments (diff)
downloadserenity-7fd60a98f8b131d0ef0ca20d4e73bade4854d398.tar.xz
serenity-7fd60a98f8b131d0ef0ca20d4e73bade4854d398.zip
Make Context::channel_id public
Diffstat (limited to 'src/client')
-rw-r--r--src/client/context.rs6
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