Add a way to choose message fetch sort.

This commit is contained in:
Paul
2021-05-03 16:35:59 +01:00
parent 2173b1e9f8
commit a319e72655
3 changed files with 10 additions and 6 deletions

View File

@@ -26,10 +26,6 @@ pub async fn req(user: User, target: Ref, data: Json<Data>) -> Result<()> {
data.validate()
.map_err(|error| Error::FailedValidation { error })?;
if data.name.is_none() && data.description.is_none() && data.icon.is_none() && data.remove.is_none() {
return Ok(());
}
let target = target.fetch_channel().await?;
let perm = permissions::PermissionCalculator::new(&user)
.with_channel(&target)