using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using Dapper; namespace PluralKit.Core { public static class DatabaseFunctionsExt { public static Task QueryMessageContext(this IPKConnection conn, ulong account, ulong guild, ulong channel) { return conn.QueryFirstAsync("message_context", new { account_id = account, guild_id = guild, channel_id = channel }, commandType: CommandType.StoredProcedure); } public static Task> QueryProxyMembers(this IPKConnection conn, ulong account, ulong guild) { return conn.QueryAsync("proxy_members", new { account_id = account, guild_id = guild }, commandType: CommandType.StoredProcedure); } } }