//! Error types used across the library.
use Error;
/// The error type returned by pretty much everything in the library.
///
/// You can match on the variant to figure out what went wrong. Most of the time
/// you'll see [`Api`](ClientError::Api) for things like missing permissions, or
/// [`ConnectionClosed`](ClientError::ConnectionClosed) when the gateway drops
/// (which the client handles automatically by reconnecting).