diff options
| author | Austin Hellyer <[email protected]> | 2016-11-10 20:25:32 -0700 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-12-29 11:55:10 -0800 |
| commit | 0359f512a8aada5ae0371049eb7c66ecd8d68d84 (patch) | |
| tree | f88dd9b362a2d349d0cdcd13b0859c4cc3329f46 /src/client/error.rs | |
| parent | Rework some event handles (diff) | |
| download | serenity-0359f512a8aada5ae0371049eb7c66ecd8d68d84.tar.xz serenity-0359f512a8aada5ae0371049eb7c66ecd8d68d84.zip | |
Add guild and channel search
Diffstat (limited to 'src/client/error.rs')
| -rw-r--r-- | src/client/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/error.rs b/src/client/error.rs index 0ed3bd8..14818d9 100644 --- a/src/client/error.rs +++ b/src/client/error.rs @@ -1,4 +1,5 @@ use hyper::status::StatusCode; +use ::constants::ErrorCode; use ::model::{ChannelType, Permissions}; /// An error returned from the [`Client`] or the [`Context`], or model instance. @@ -46,6 +47,7 @@ use ::model::{ChannelType, Permissions}; /// [`Context`]: struct.Context.html /// [`Context::ban`]: struct.Context.html#method.ban /// [`Error::Client`]: ../enum.Error.html#variant.Client +#[allow(enum_variant_names)] #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub enum Error { /// When attempting to delete below or above the minimum and maximum allowed @@ -54,6 +56,7 @@ pub enum Error { /// When attempting to delete a number of days' worth of messages that is /// not allowed. DeleteMessageDaysAmount(u8), + ErrorCode(ErrorCode), /// When there was an error retrieving the gateway URI from the REST API. Gateway, /// An indication that a [guild][`Guild`] could not be found by |