From b52b54d80c1ea8e6dfd31fa6ea9331597039761f Mon Sep 17 00:00:00 2001 From: GreemDev Date: Mon, 13 May 2019 17:30:39 -0500 Subject: [PATCH] fix: EmbedBuilderExtensions no longer has an extension for WithAuthor(IGuildUser). (#1294) 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)