Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deprecate ContentSafeOptions::show_discriminator #3090

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/utils/content_safe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ impl ContentSafeOptions {
/// This option is ignored if the username is a next-gen username, and
/// therefore does not have a discriminator.
#[must_use]
#[deprecated = "Discriminators are deprecated on the discord side, and this doesn't reflect message rendering behaviour"]
pub fn show_discriminator(mut self, b: bool) -> Self {
self.show_discriminator = b;

Expand Down
Loading