mirror of
https://github.com/MedzikUser/imgurs
synced 2024-08-15 00:03:19 +00:00
15 lines
356 B
Rust
15 lines
356 B
Rust
use colored::Colorize;
|
|
use imgurs::ImgurClient;
|
|
|
|
pub async fn delete_image(client: ImgurClient, delete_hash: String) {
|
|
// delete image from imgur
|
|
client
|
|
.delete_image(delete_hash)
|
|
.await
|
|
.expect("send api request");
|
|
|
|
println!(
|
|
"{}",
|
|
"If Delete Hash was correct the image was deleted!".magenta()
|
|
);
|
|
}
|