mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Split message/proxy data up in MessageContext and ProxyMember
This commit is contained in:
parent
ba441a15cc
commit
3d62a0d33c
18 changed files with 296 additions and 499 deletions
|
|
@ -64,10 +64,8 @@ namespace PluralKit.Bot
|
|||
|
||||
public ICollection<LoggerBot> Bots => _bots.Values;
|
||||
|
||||
public async ValueTask HandleLoggerBotCleanup(DiscordMessage msg, GuildConfig cachedGuild)
|
||||
public async ValueTask HandleLoggerBotCleanup(DiscordMessage msg)
|
||||
{
|
||||
// Bail if not enabled, or if we don't have permission here
|
||||
if (!cachedGuild.LogCleanupEnabled) return;
|
||||
if (msg.Channel.Type != ChannelType.Text) return;
|
||||
if (!msg.Channel.BotHasAllPermissions(Permissions.ManageMessages)) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue