diff --git a/src/http/client.rs b/src/http/client.rs index 659e0c98c8f..a598c7e5f18 100644 --- a/src/http/client.rs +++ b/src/http/client.rs @@ -4166,11 +4166,11 @@ impl Http { let code = crate::utils::parse_invite(code); let mut params = vec![ - ("member_counts", member_counts.to_string()), - ("expiration", expiration.to_string()), + ("with_counts", member_counts.to_string()), + ("with_expiration", expiration.to_string()), ]; if let Some(event_id) = event_id { - params.push(("event_id", event_id.to_string())); + params.push(("guild_scheduled_event_id", event_id.to_string())); } self.fire(Request {