2021-11-27 02:10:56 +00:00
|
|
|
namespace PluralKit.Core;
|
2020-06-12 21:13:21 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
public partial class ModelRepository
|
2020-06-12 21:13:21 +00:00
|
|
|
{
|
2023-05-10 01:16:16 +00:00
|
|
|
public Task<MessageContext> GetMessageContext(ulong account, ulong guild, ulong channel, ulong thread)
|
2021-11-27 02:10:56 +00:00
|
|
|
=> _db.QuerySingleProcedure<MessageContext>("message_context",
|
2023-05-10 01:16:16 +00:00
|
|
|
new { account_id = account, guild_id = guild, channel_id = channel, thread_id = thread });
|
2021-08-27 15:03:47 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
public Task<IEnumerable<ProxyMember>> GetProxyMembers(ulong account, ulong guild)
|
|
|
|
=> _db.QueryProcedure<ProxyMember>("proxy_members", new { account_id = account, guild_id = guild });
|
2020-06-12 21:13:21 +00:00
|
|
|
}
|