Skip to content

Commit

Permalink
make passwords a required payload in Delete/RegenerateBot payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
jay3332 committed Jun 23, 2024
1 parent 02fab15 commit 12b82c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/http/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,17 @@ pub struct EditBotPayload {
#[cfg_attr(feature = "client", derive(Serialize))]
#[cfg_attr(feature = "utoipa", derive(ToSchema))]
pub struct DeleteBotPayload {
/// The password of the bot owner. Not required if the bot is in less than 20 guilds.
/// The password of the bot owner.
#[cfg_attr(feature = "utoipa", schema(format = "password"))]
pub password: Option<String>,
pub password: String,
}

/// Payload sent when regenerating a bot's token.
#[derive(Clone, Debug, Deserialize)]
#[cfg_attr(feature = "client", derive(Serialize))]
#[cfg_attr(feature = "utoipa", derive(ToSchema))]
pub struct RegenerateBotTokenPayload {
/// The password of the bot owner. Not required if the bot is in less than 20 guilds.
/// The password of the bot owner.
#[cfg_attr(feature = "utoipa", schema(format = "password"))]
pub password: Option<String>,
pub password: String,
}

0 comments on commit 12b82c6

Please sign in to comment.