From bf9c5a322370c0000070de759506ea26b9f54e24 Mon Sep 17 00:00:00 2001 From: Macintosh II Date: Thu, 28 Sep 2023 18:49:37 +0300 Subject: [PATCH] remove unused method Signed-off-by: Macintosh II --- src/Extensions.cs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Extensions.cs b/src/Extensions.cs index 0efba21..47c7369 100644 --- a/src/Extensions.cs +++ b/src/Extensions.cs @@ -17,23 +17,6 @@ namespace Boyfriend; public static class Extensions { - /// - /// Adds a footer with the 's avatar and tag (@username or username#0000). - /// - /// The builder to add the footer to. - /// The user whose tag and avatar to add. - /// The builder with the added footer. - // ReSharper disable once UnusedMember.Global - public static EmbedBuilder WithUserFooter(this EmbedBuilder builder, IUser user) - { - var avatarUrlResult = CDN.GetUserAvatarUrl(user, imageSize: 256); - var avatarUrl = avatarUrlResult.IsSuccess - ? avatarUrlResult.Entity.AbsoluteUri - : CDN.GetDefaultUserAvatarUrl(user, imageSize: 256).Entity.AbsoluteUri; - - return builder.WithFooter(new EmbedFooter(user.GetTag(), avatarUrl)); - } - /// /// Adds a footer representing that an action was performed by a . ///