mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
parent
9be65d03b1
commit
757a4ea5e2
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ public class LoggerCleanService
|
|||
// Embed, title ends with "Message Deleted", contains ID plain in a field.
|
||||
var embed = msg.Embeds?.FirstOrDefault();
|
||||
if (embed == null || !(embed.Title?.EndsWith("Message Deleted") ?? false)) return null;
|
||||
var field = embed.Fields.FirstOrDefault(f => f.Name == "Message ID");
|
||||
var field = embed.Fields.FirstOrDefault(f => f.Name == "Message Id");
|
||||
var match = _basicRegex.Match(field.Value ?? "");
|
||||
return match.Success ? ulong.Parse(match.Groups[1].Value) : null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue