feat: don't call GetCurrentProcess twice

This commit is contained in:
spiral 2021-11-09 01:51:02 -05:00
parent 35bbf199f6
commit 24a549341e
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -114,7 +114,7 @@ namespace PluralKit.Bot
+ $" {counts.GroupCount:N0} groups," + $" {counts.GroupCount:N0} groups,"
+ $" {counts.SwitchCount:N0} switches," + $" {counts.SwitchCount:N0} switches,"
+ $" {counts.MessageCount:N0} messages")) + $" {counts.MessageCount:N0} messages"))
.Timestamp(Process.GetCurrentProcess().StartTime.ToString("O")) .Timestamp(process.StartTime.ToString("O"))
.Footer(new($"PluralKit {BuildInfoService.Version} • https://github.com/xSke/PluralKit • Last restarted: ")); ; .Footer(new($"PluralKit {BuildInfoService.Version} • https://github.com/xSke/PluralKit • Last restarted: ")); ;
await ctx.Rest.EditMessage(msg.ChannelId, msg.Id, await ctx.Rest.EditMessage(msg.ChannelId, msg.Id,
new MessageEditRequest { Content = "", Embed = embed.Build() }); new MessageEditRequest { Content = "", Embed = embed.Build() });