public DiscordEmbed ToEmbed(DiscordUser owner) { var builder = new DiscordEmbedBuilder(); builder.Title = title; builder.Footer = new DiscordEmbedBuilder.EmbedFooter(); builder.Author = DiscordEmbedUtils.MakeUserAuther(owner); //if( owner != null ) builder.Footer.Text = $"This encounter can only be completed by {owner.Username}"; var descriptionBuilder = new StringBuilder(); descriptionBuilder.Append(text); if (listOptions) { descriptionBuilder.Append("\n\n"); descriptionBuilder.Append(CreateOptionsString()); } if (lootAction != null) { builder.Footer.Text = claimLootString; } builder.Description = descriptionBuilder.ToString(); return(builder); }
public DiscordEmbed ToEmbed(DiscordUser owner) { var builder = new DiscordEmbedBuilder(); builder.Title = title; builder.Footer = new DiscordEmbedBuilder.EmbedFooter(); builder.Author = DiscordEmbedUtils.MakeUserAuther(owner); //if( owner != null ) builder.Footer.Text = $"This encounter can only be completed by {owner.Username}"; if (listOptions) { builder.Description = string.Format("{0}\n\n{1}", text, CreateOptionsString()); } else { builder.Description = text; } return(builder); }