diff options
| author | Austin Hellyer <[email protected]> | 2016-11-21 13:22:07 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-21 13:22:07 -0800 |
| commit | 7fd60a98f8b131d0ef0ca20d4e73bade4854d398 (patch) | |
| tree | 60b4c421f37ad791ea5e953203d8cd8df1c9b1df /src/client | |
| parent | Add framework command named arguments (diff) | |
| download | serenity-7fd60a98f8b131d0ef0ca20d4e73bade4854d398.tar.xz serenity-7fd60a98f8b131d0ef0ca20d4e73bade4854d398.zip | |
Make Context::channel_id public
Diffstat (limited to 'src/client')
| -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 |