From 147e1fdc1a755b880c8cb0ad42f3f6d2c3025ca2 Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 25 Aug 2020 23:26:41 +0200 Subject: [PATCH] Potentially fix NRE in ProxyService --- PluralKit.Bot/Proxy/ProxyService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Proxy/ProxyService.cs b/PluralKit.Bot/Proxy/ProxyService.cs index 9b6512d2..b616914c 100644 --- a/PluralKit.Bot/Proxy/ProxyService.cs +++ b/PluralKit.Bot/Proxy/ProxyService.cs @@ -100,7 +100,7 @@ namespace PluralKit.Bot match.Member.ProxyAvatar(ctx), content, trigger.Attachments, allowEveryone); - Task SaveMessage() => _data.AddMessage(conn, trigger.Author.Id, trigger.Channel.GuildId, trigger.Channel.Id, id, trigger.Id, match.Member.Id); + Task SaveMessage() => _data.AddMessage(conn, trigger.Author.Id, trigger.Channel.GuildId, trigger.ChannelId, id, trigger.Id, match.Member.Id); Task LogMessage() => _logChannel.LogMessage(ctx, match, trigger, id).AsTask(); async Task DeleteMessage() {