Exemplo n.º 1
0
        public async Task ViewMeritAsync(Merit merit)
        {
            if (!MeritHelper.HasUnlocked(Context.Account, merit) && merit.Hidden)
            {
                await Context.Channel.SendMessageAsync(Format.Warning("You are not authorized to view this merit."));

                return;
            }

            await Context.Channel.SendMessageAsync(MeritHelper.ViewMerit(merit, Context.Account));
        }
Exemplo n.º 2
0
 public async Task ViewMeritsAsync(string query = null, int page = 1)
 {
     await Context.Channel.SendMessageAsync(MeritHelper.View(Context.Account, query, --page));
 }
Exemplo n.º 3
0
 public async Task ClaimAsync(string meritId = null)
 {
     await Context.Channel.SendMessageAsync(MeritHelper.Claim(Context.Account, meritId));
 }