Added .qimport and .qexport commands, fixed some response strings

This commit is contained in:
Kwoth
2021-12-11 15:27:32 +01:00
parent 02eb6e172b
commit 36c013fbb5
7 changed files with 164 additions and 5 deletions

View File

@@ -9,6 +9,11 @@ namespace NadekoBot.Db
{
public static class QuoteExtensions
{
public static IEnumerable<Quote> GetForGuild(this DbSet<Quote> quotes, ulong guildId)
{
return quotes.AsQueryable().Where(x => x.GuildId == guildId);
}
public static IEnumerable<Quote> GetGroup(this DbSet<Quote> quotes, ulong guildId, int page, OrderType order)
{
var q = quotes.AsQueryable().Where(x => x.GuildId == guildId);