Fix: Use UploadFiles instead of EmbedLinks perm.
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export version=0.5.1-alpha.1
|
export version=0.5.1-alpha.1-patch.0
|
||||||
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs
|
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal
|
|||||||
|
|
||||||
let mut attachments = vec![];
|
let mut attachments = vec![];
|
||||||
if let Some(ids) = &message.attachments {
|
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)
|
return Err(Error::MissingPermission)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
pub const VERSION: &str = "0.5.1-alpha.1";
|
pub const VERSION: &str = "0.5.1-alpha.1-patch.0";
|
||||||
|
|||||||
Reference in New Issue
Block a user