diff options
| author | Zeyla Hellyer <[email protected]> | 2017-06-13 21:43:03 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-13 21:43:03 -0700 |
| commit | 8b504ad7f6e10fecb27583a949262eb61cfd266d (patch) | |
| tree | b379f99ea6756603c612cdd3d58f8227bffc94b4 /src/framework/mod.rs | |
| parent | Fix CurrentUser::invite_url (diff) | |
| download | serenity-8b504ad7f6e10fecb27583a949262eb61cfd266d.tar.xz serenity-8b504ad7f6e10fecb27583a949262eb61cfd266d.zip | |
Remove Context::{channel_id, queue}
The `channel_id` field on Context is no longer required internally, and
is no longer of use to userland as event handlers are given the channel
ID in some way where possible.
`queue` is a remnant from when the Context was the primary way to
interact with the REST API.
Diffstat (limited to 'src/framework/mod.rs')
| -rw-r--r-- | src/framework/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 63a83b4..1f7a7bb 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -544,7 +544,7 @@ impl Framework { let result = match command.exec { CommandType::StringResponse(ref x) => { - let _ = &mut context.channel_id.unwrap().say(x); + let _ = message.channel_id.say(x); Ok(()) }, |