Fix guild ban test failing

This commit is contained in:
bitfl0wer 2023-08-26 17:45:27 +02:00
parent 1410e3ec13
commit 708e0d21ff
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,8 @@ impl Guild {
audit_log_reason: Option<String>,
schema: GuildBanCreateSchema,
user: &mut ChorusUser,
) -> ChorusResult<GuildBan> {
) -> ChorusResult<()> {
// FIXME: Return GuildBan instead of (). Requires <https://github.com/spacebarchat/server/issues/1096> to be resolved.
let request = ChorusRequest::new(
http::Method::PUT,
format!(
@ -165,8 +166,7 @@ impl Guild {
Some(user),
LimitType::Guild(guild_id),
);
let response = request.deserialize_response::<GuildBan>(user).await?;
Ok(response)
request.handle_request_as_result(user).await
}
/// # Reference