Module serenity::prelude [] [src]

A set of exports which can be helpful to use.

Note that the SerenityError re-export is equivalent to serenity::Error, although is re-exported as a separate name to remove likely ambiguity with other crate error enums.

Examples

Import all of the exports:

use serenity::prelude::*;

Reexports

pub use client::Client;

Enums

ClientError

An error returned from the Client.

GatewayError

An error that occurred while attempting to deal with the gateway.

HttpError
ModelError

An error returned from the model module.

SerenityError

A common error enum returned by most of the library's functionality within a custom Result.

Traits

Mentionable

Allows something - such as a channel or role - to be mentioned in a message.