public async Task Me(IUser user = null) { if (user == null) { user = Context.User; } var userg = await _rp.GetRPUser(user); if (userg != null) { var embed = new EmbedBuilder() { Title = $"{userg.Emoji} {user.Username}'s profile", Description = $"{userg.Description}", Url = userg.Website ?? null, ThumbnailUrl = user.GetAvatarUrl(), Fields = new System.Collections.Generic.List <EmbedFieldBuilder>() { new EmbedFieldBuilder() { IsInline = true, Name = "Likes \\👍", Value = $"{userg.Likes} `👍`" }, new EmbedFieldBuilder() { IsInline = true, Name = "Money", Value = $"{userg.Money} 💸" }, new EmbedFieldBuilder() { IsInline = true, Name = "Personality", Value = $"{(userg.Personality == String.Empty ? "*not definied*" : userg.Personality )}" }, new EmbedFieldBuilder() { IsInline = true, Name = "Job", Value = $"{userg.Job.GetDescription()}" } } }.WithRandomColor(); await ReplyAsync(embed : embed.Build()); } else { await ReplyAsync("... I can't find your account `hb!start`"); this.Context.CooldownCancelled = true; } }
public async Task Description([Remainder] string description = null) { var user = await _rp.GetRPUser(Context.User); if (user != null) { if (description == null) { await ReplyAsync($"Your description is ```{user.Description}```"); } else { user.Description = description; await _rp.UpdateUser(user); await ReplyAsync($"You description is now ```{user.Description}```"); } } }