Struct serenity::model::application::BotApplication [−][src]
#[non_exhaustive]pub struct BotApplication {
pub id: UserId,
pub avatar: Option<String>,
pub bot: bool,
pub discriminator: u16,
pub name: String,
pub token: String,
}
Expand description
Information about an application with an application’s bot user.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BotApplication
impl Send for BotApplication
impl Sync for BotApplication
impl Unpin for BotApplication
impl UnwindSafe for BotApplication
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more