Label permission errors, and too many ids for /stale.

This commit is contained in:
Paul
2021-02-19 13:26:04 +00:00
parent 64d2707366
commit 10cac358a9
13 changed files with 20 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ pub async fn req(user: User, target: Ref, msg: Ref) -> Result<JsonValue> {
.for_channel()
.await?;
if !perm.get_view() {
Err(Error::LabelMe)?
Err(Error::MissingPermission)?
}
let message = msg.fetch_message(&channel).await?;