Struct serenity::model::BotApplication [] [src]

pub struct BotApplication {
    pub id: UserId,
    pub avatar: Option<String>,
    pub bot: bool,
    pub discriminator: u16,
    pub name: String,
    pub token: String,
}

Information about an application with an application's bot user.

Fields

The unique Id of the bot user.

A hash of the avatar, if one is assigned.

Can be used to generate a full URL to the avatar.

Indicator of whether it is a bot.

The discriminator assigned to the bot user.

While discriminators are not unique, the username#discriminator pair is.

The bot user's username.

The token used to authenticate as the bot user.

Note: Keep this information private, as untrusted sources can use it to perform any action with a bot user.

Trait Implementations

impl Clone for BotApplication
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for BotApplication
[src]

[src]

Formats the value using the given formatter.