mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
feat(bot): update logclean for Dyno change
This commit is contained in:
parent
c22de98271
commit
99d71aec2c
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ public class LoggerCleanService
|
||||||
{
|
{
|
||||||
// Embed *description* contains "Message sent by [mention] deleted in [channel]", contains message ID in footer per regex
|
// Embed *description* contains "Message sent by [mention] deleted in [channel]", contains message ID in footer per regex
|
||||||
var embed = msg.Embeds?.FirstOrDefault();
|
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 ?? "");
|
var match = _dynoRegex.Match(embed.Footer.Text ?? "");
|
||||||
return match.Success ? ulong.Parse(match.Groups[1].Value) : null;
|
return match.Success ? ulong.Parse(match.Groups[1].Value) : null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue