chore: include discriminator in ban list response
This commit is contained in:
@@ -14,6 +14,8 @@ struct BannedUser {
|
|||||||
pub id: String,
|
pub id: String,
|
||||||
/// Username of the banned user
|
/// Username of the banned user
|
||||||
pub username: String,
|
pub username: String,
|
||||||
|
/// Discriminator of the banned user
|
||||||
|
pub discriminator: String,
|
||||||
/// Avatar of the banned user
|
/// Avatar of the banned user
|
||||||
pub avatar: Option<File>,
|
pub avatar: Option<File>,
|
||||||
}
|
}
|
||||||
@@ -32,6 +34,7 @@ impl From<User> for BannedUser {
|
|||||||
BannedUser {
|
BannedUser {
|
||||||
id: user.id,
|
id: user.id,
|
||||||
username: user.username,
|
username: user.username,
|
||||||
|
discriminator: user.discriminator,
|
||||||
avatar: user.avatar,
|
avatar: user.avatar,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user