Fix: Use UploadFiles instead of EmbedLinks perm.

This commit is contained in:
Paul
2021-06-26 22:35:21 +01:00
parent 07e74e1074
commit f35a1049da
3 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal
let mut attachments = vec![];
if let Some(ids) = &message.attachments {
if ids.len() > 0 && !perm.get_embed_links() {
if ids.len() > 0 && !perm.get_upload_files() {
return Err(Error::MissingPermission)
}

View File

@@ -1 +1 @@
pub const VERSION: &str = "0.5.1-alpha.1";
pub const VERSION: &str = "0.5.1-alpha.1-patch.0";