1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-06 05:56:29 +03:00

remove unused method

Signed-off-by: Macintosh II <mctaylxrs@outlook.com>
This commit is contained in:
Macintxsh 2023-09-28 18:49:37 +03:00
parent 904b17c12a
commit bf9c5a3223
Signed by: mctaylors
GPG key ID: 361D326747B61E65

View file

@ -17,23 +17,6 @@ namespace Boyfriend;
public static class Extensions public static class Extensions
{ {
/// <summary>
/// Adds a footer with the <paramref name="user" />'s avatar and tag (@username or username#0000).
/// </summary>
/// <param name="builder">The builder to add the footer to.</param>
/// <param name="user">The user whose tag and avatar to add.</param>
/// <returns>The builder with the added footer.</returns>
// 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));
}
/// <summary> /// <summary>
/// Adds a footer representing that an action was performed by a <paramref name="user" />. /// Adds a footer representing that an action was performed by a <paramref name="user" />.
/// </summary> /// </summary>