pub struct Bot {Show 19 fields
pub avatar: Option<String>,
pub certified_bot: bool,
pub date: DateTime<FixedOffset>,
pub def_avatar: Option<String>,
pub description_long: Option<String>,
pub description_short: String,
pub discriminator: String,
pub github: Option<String>,
pub id: String,
pub invite: Option<String>,
pub lib: String,
pub owners: Vec<String>,
pub points: u64,
pub prefix: String,
pub support: Option<String>,
pub tags: Vec<String>,
pub username: String,
pub vanity: Option<String>,
pub website: Option<String>,
}Expand description
Information about a bot.
Fields§
§avatar: Option<String>The avatar hash of the bot user.
certified_bot: boolThe certified status of the bot.
date: DateTime<FixedOffset>The date when the bot was approved.
def_avatar: Option<String>The CDN hash of the bot’s avatar if the bot has none.
description_long: Option<String>The long description of the bot.
Can contain HTML and/or Markdown.
description_short: StringThe short description of the bot.
discriminator: StringThe discriminator of the bot.
github: Option<String>The link to the GitHub repo of the bot.
id: StringThe ID of the bot.
invite: Option<String>The custom bot invite URL of the bot.
lib: StringThe library of the bot.
owners: Vec<String>The owners of the bot. First one in the array is the main owner.
points: u64The amount of upvotes the bot has.
prefix: StringThe prefix of the bot.
support: Option<String>The support server invite code of the bot.
The tags of the bot.
username: StringThe username of the bot.
vanity: Option<String>The vanity URL of the bot.
website: Option<String>The website URL of the bot.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bot
impl<'de> Deserialize<'de> for Bot
Source§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 Freeze for Bot
impl RefUnwindSafe for Bot
impl Send for Bot
impl Sync for Bot
impl Unpin for Bot
impl UnwindSafe for Bot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more