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
id: UserId
The unique Id of the bot user.
avatar: Option<String>
A hash of the avatar, if one is assigned.
Can be used to generate a full URL to the avatar.
bot: bool
Indicator of whether it is a bot.
discriminator: u16
The discriminator assigned to the bot user.
While discriminators are not unique, the username#discriminator
pair
is.
name: String
The bot user's username.
token: String
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]
fn clone(&self) -> BotApplication
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more