feat: member add logs, improve meta command
This commit is contained in:
parent
f0cb5a9d03
commit
8f39d85486
12 changed files with 73 additions and 15 deletions
|
|
@ -15,8 +15,12 @@ public static class QueryExtensions
|
|||
public static async ValueTask<Guild> GetGuildAsync(this DatabaseContext db, ulong id,
|
||||
CancellationToken ct = default)
|
||||
{
|
||||
var guild = await db.Guilds.FindAsync(id);
|
||||
var guild = await db.Guilds.FindAsync([id], ct);
|
||||
if (guild == null) throw new CataloggerError("Guild not found, was not initialized during guild create");
|
||||
return guild;
|
||||
}
|
||||
|
||||
public static async Task<Watchlist?> GetWatchlistEntryAsync(this DatabaseContext db, Snowflake guildId,
|
||||
Snowflake userId, CancellationToken ct = default) =>
|
||||
await db.Watchlists.FindAsync([guildId.Value, userId.Value], ct);
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
namespace Catalogger.Backend.Database;
|
||||
Loading…
Add table
Add a link
Reference in a new issue