serenity-rs / serenity

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

Fix CreateAttachment documentation to describe as struct #2906

Closed limonfort closed 2 months ago

limonfort commented 2 months ago

This pull request addresses issue #2889 by correcting the documentation for the CreateAttachment struct. The previous documentation incorrectly described CreateAttachment as an enum and stated that it allows a user to pass a Path or a File type to send_files, which was misleading.

Changes made in this pull request:

This fix ensures that developers have accurate and useful information when using the CreateAttachment struct in their applications.

Fixes #2889

jamesbt365 commented 2 months ago

please run cargo +nightly fmt --all.

limonfort commented 2 months ago

fixed now i think