public async Task GetMeritsAsync(MeritGroup?group = null) { if (group.HasValue) { await Context.Channel.SendMessageAsync(Context.Account, MeritHandler.ViewCategory(Context.Account, group.Value)); } else { await Context.Channel.SendMessageAsync(Context.Account, MeritHandler.ViewDefault(Context.Account)); } }
public async Task ClaimMeritAsync(string id) { if (Context.Account.HasMerit(id)) { if (Context.Account.Merits[id].IsClaimed ?? true) { await Context.Channel.SendMessageAsync("This merit has either already been claimed or doesn't have a reward attached."); return; } else { Merit merit = Engine.GetMerit(id); await Context.Channel.SendMessageAsync(MeritHandler.ClaimAndDisplay(Context.Account, merit)); } } }