Skip to content

Commit

Permalink
Deprecate ContentSafeOptions::show_discriminator (#3090)
Browse files Browse the repository at this point in the history
This is a followup to #3083 as otherwise an `allow(deprecated)` was
being used for a non-deprecated code path.
  • Loading branch information
GnomedDev authored Jan 10, 2025
1 parent 5a46f1f commit 25a4de8
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit 25a4de8

Please sign in to comment.