mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
feat: split out messages table from main database
This commit is contained in:
parent
09ac002d26
commit
bf7747ab34
14 changed files with 119 additions and 84 deletions
|
|
@ -197,7 +197,7 @@ public class Checks
|
|||
if (messageId == null || channelId == null)
|
||||
throw new PKError(failedToGetMessage);
|
||||
|
||||
var proxiedMsg = await ctx.Database.Execute(conn => ctx.Repository.GetMessage(conn, messageId.Value));
|
||||
var proxiedMsg = await ctx.Repository.GetMessage(messageId.Value);
|
||||
if (proxiedMsg != null)
|
||||
{
|
||||
await ctx.Reply($"{Emojis.Success} This message was proxied successfully.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue