Skip to content

Commit 25a4de8

Browse files
authored
Deprecate ContentSafeOptions::show_discriminator (#3090)
This is a followup to #3083 as otherwise an `allow(deprecated)` was being used for a non-deprecated code path.
1 parent 5a46f1f commit 25a4de8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/content_safe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl ContentSafeOptions {
5858
/// This option is ignored if the username is a next-gen username, and
5959
/// therefore does not have a discriminator.
6060
#[must_use]
61+
#[deprecated = "Discriminators are deprecated on the discord side, and this doesn't reflect message rendering behaviour"]
6162
pub fn show_discriminator(mut self, b: bool) -> Self {
6263
self.show_discriminator = b;
6364

0 commit comments

Comments
 (0)