chore: Write tests for pinning

This commit is contained in:
Zomatree
2024-07-21 22:22:46 +01:00
parent c50435d499
commit 87a9fb79f2
6 changed files with 186 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ impl Member {
server: &Server,
user: &User,
channels: Option<Vec<Channel>>,
) -> Result<Vec<Channel>> {
) -> Result<(Member, Vec<Channel>)> {
if db.fetch_ban(&server.id, &user.id).await.is_ok() {
return Err(create_error!(Banned));
}
@@ -155,7 +155,7 @@ impl Member {
.ok();
}
Ok(channels)
Ok((member, channels))
}
/// Update member data