feat(bot): update logclean for Dyno change

This commit is contained in:
spiral 2022-12-14 20:42:45 +00:00
parent c22de98271
commit 99d71aec2c
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -172,7 +172,7 @@ public class LoggerCleanService
{
// Embed *description* contains "Message sent by [mention] deleted in [channel]", contains message ID in footer per regex
var embed = msg.Embeds?.FirstOrDefault();
if (embed?.Footer == null || !(embed.Description?.Contains("deleted in") ?? false)) return null;
if (embed?.Footer == null || !(embed.Description?.Contains("Deleted in") ?? false)) return null;
var match = _dynoRegex.Match(embed.Footer.Text ?? "");
return match.Success ? ulong.Parse(match.Groups[1].Value) : null;
}