Skip to content

Commit 2fb922e

Browse files
authored
Make fields of BulkBanResponse public (#3005)
How are we supposed to use them if they're private?
1 parent 73d8ff2 commit 2fb922e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/http/client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ impl Http {
318318

319319
/// Bans multiple users from a [`Guild`], optionally removing their messages.
320320
///
321-
/// See the [Discord Docs](https://github.com/discord/discord-api-docs/pull/6720) for more information.
321+
/// See the [Discord docs](https://discord.com/developers/docs/resources/guild#bulk-guild-ban)
322+
/// for more information.
322323
pub async fn bulk_ban_users(
323324
&self,
324325
guild_id: GuildId,

src/model/guild/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,15 @@ pub struct Ban {
7777

7878
/// The response from [`GuildId::bulk_ban`].
7979
///
80-
/// [Discord docs](https://github.com/discord/discord-api-docs/pull/6720).
80+
/// [Discord docs](https://discord.com/developers/docs/resources/guild#bulk-guild-ban).
8181
#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
8282
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
83+
#[non_exhaustive]
8384
pub struct BulkBanResponse {
8485
/// The users that were successfully banned.
85-
banned_users: Vec<UserId>,
86+
pub banned_users: Vec<UserId>,
8687
/// The users that were not successfully banned.
87-
failed_users: Vec<UserId>,
88+
pub failed_users: Vec<UserId>,
8889
}
8990

9091
#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]

0 commit comments

Comments
 (0)