PluralKit/PluralKit.Core/Database/Repository/ModelRepository.Context.cs

23 lines
721 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
namespace PluralKit.Core
{
public partial class ModelRepository
{
public Task<MessageContext> GetMessageContext(ulong account, ulong guild, ulong channel)
=> _db.QuerySingleProcedure<MessageContext>("message_context", new
{
account_id = account,
guild_id = guild,
channel_id = channel
});
public Task<IEnumerable<ProxyMember>> GetProxyMembers(ulong account, ulong guild)
=> _db.QueryProcedure<ProxyMember>("proxy_members", new
{
account_id = account,
guild_id = guild
});
}
}