public async Task StoreQuery(string opts, string name, [Remainder] string rest) { Dictionary <string, string> options; if (opts.StartsWith("?")) { options = MiscUtil.ExtractOpts(opts); } else { rest = name + " " + rest; name = opts; options = new Dictionary <string, string>(); } GuildDatabase db = dsv.GetOrInitDatabase($"dc-{Context.Guild.Id}"); db.StoreQuery(name, MiscUtil.DictToOpts(options), rest); await Context.Message.AddReactionAsync(new Emoji("🆗")); }