Too many refactors in one:
- Allowed adding ephemeral(ish) views and functions - Moved message_count to a concrete database field - Moved most proxy logic to a stored procedure - Moved database files around and refactored schema manager
This commit is contained in:
@@ -118,7 +118,7 @@ namespace PluralKit.Bot
|
||||
|
||||
try
|
||||
{
|
||||
await _proxy.HandleMessageAsync(evt.Client, cachedGuild, cachedAccount, msg, allowAutoproxy: true);
|
||||
await _proxy.HandleIncomingMessage(evt.Message, allowAutoproxy: true);
|
||||
}
|
||||
catch (PKError e)
|
||||
{
|
||||
|
@@ -45,7 +45,7 @@ namespace PluralKit.Bot
|
||||
var guild = await _proxyCache.GetGuildDataCached(evt.Channel.GuildId);
|
||||
|
||||
// Just run the normal message handling stuff, with a flag to disable autoproxying
|
||||
await _proxy.HandleMessageAsync(evt.Client, guild, account, evt.Message, allowAutoproxy: false);
|
||||
await _proxy.HandleIncomingMessage(evt.Message, allowAutoproxy: false);
|
||||
}
|
||||
}
|
||||
}
|
@@ -58,7 +58,7 @@ namespace PluralKit.Bot
|
||||
|
||||
private async ValueTask HandleDeleteReaction(MessageReactionAddEventArgs evt, FullMessage msg)
|
||||
{
|
||||
if (evt.Channel.BotHasAllPermissions(Permissions.ManageMessages)) return;
|
||||
if (!evt.Channel.BotHasAllPermissions(Permissions.ManageMessages)) return;
|
||||
|
||||
// Can only delete your own message
|
||||
if (msg.Message.Sender != evt.User.Id) return;
|
||||
|
Reference in New Issue
Block a user