Skip to content

Commit 2a10492

Browse files
authored
Fix incorrect parameters for retrieving invites (#3059)
1 parent 35b13e6 commit 2a10492

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/http/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4145,11 +4145,11 @@ impl Http {
41454145
let code = crate::utils::parse_invite(code);
41464146

41474147
let mut params = vec![
4148-
("member_counts", member_counts.to_string()),
4149-
("expiration", expiration.to_string()),
4148+
("with_counts", member_counts.to_string()),
4149+
("with_expiration", expiration.to_string()),
41504150
];
41514151
if let Some(event_id) = event_id {
4152-
params.push(("event_id", event_id.to_string()));
4152+
params.push(("guild_scheduled_event_id", event_id.to_string()));
41534153
}
41544154

41554155
self.fire(Request {

0 commit comments

Comments
 (0)