From 1ff72e38acaaf522ba57f532e2f70607acfb8fe6 Mon Sep 17 00:00:00 2001 From: Michael Husted Date: Wed, 10 Apr 2019 16:52:59 -0500 Subject: [PATCH] EmbedBuilderExtensions no longer has an extension for WithAuthor(IGuildUser). The embed should not display nickname#discriminator as that's incorrect. So the extension was scrapped altogether to use the IUser (and by inheritance, IGuildUser) one. --- src/Discord.Net.Core/Extensions/EmbedBuilderExtensions.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Discord.Net.Core/Extensions/EmbedBuilderExtensions.cs b/src/Discord.Net.Core/Extensions/EmbedBuilderExtensions.cs index 138c8f40e..b96558175 100644 --- a/src/Discord.Net.Core/Extensions/EmbedBuilderExtensions.cs +++ b/src/Discord.Net.Core/Extensions/EmbedBuilderExtensions.cs @@ -29,10 +29,6 @@ namespace Discord public static EmbedBuilder WithAuthor(this EmbedBuilder builder, IUser user) => builder.WithAuthor($"{user.Username}#{user.Discriminator}", user.GetAvatarUrl()); - /// Fills the embed author field with the provided user's nickname and avatar URL; username is used if nickname is not set. - public static EmbedBuilder WithAuthor(this EmbedBuilder builder, IGuildUser user) => - builder.WithAuthor($"{user.Nickname ?? user.Username}#{user.Discriminator}", user.GetAvatarUrl()); - /// Converts a object to a . /// The embed type is not . public static EmbedBuilder ToEmbedBuilder(this IEmbed embed)