serenity-rs / serenity

A Rust library for the Discord API.
https://discord.gg/serenity-rs
ISC License
4.65k stars 571 forks source link

CreateAttachment's item-level documentation is outdated #2889

Closed GnomedDev closed 2 months ago

GnomedDev commented 2 months ago
/// Enum that allows a user to pass a [`Path`] or a [`File`] type to [`send_files`]
pub struct CreateAttachment {

That doesn't look like an enum to me!

limonfort commented 2 months ago

I've submitted a PR to fix this issue: #2906