public static async Task ReadOptionAsync(OrikivoCommandContext Context, int i) { if (!OptionsHelper.TryParseOption(i, out AccountOption ao)) { await Context.Channel.ThrowAsync("Invalid context.", "The integer specified led to no results."); return; } await Context.Channel.ReadAsync(ao.Interpret(), Context.Account); }
public static async Task ReadOptionsAsync(OrikivoCommandContext Context) { await Context.Channel.SendEmbedAsync(OptionsHelper.InterpretAll().PeekAll(Context.Account)); }
public static Interpreter Interpret(this AccountOption ao) => OptionsHelper.GetInterpreter(ao);