From cc0ec364e6406a6857bb836385ec5f16ba120288 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Wed, 7 Feb 2018 12:47:51 -0800 Subject: [PATCH] Fix compilation error --- Module/ModTools/Commands/BanKick.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Module/ModTools/Commands/BanKick.cs b/Module/ModTools/Commands/BanKick.cs index 919a08f..2009926 100644 --- a/Module/ModTools/Commands/BanKick.cs +++ b/Module/ModTools/Commands/BanKick.cs @@ -163,7 +163,7 @@ namespace Noikoio.RegexBot.Module.ModTools.Commands var ch = await target.GetOrCreateDMChannelAsync(); string outresult = _notifyMsg; - outresult = outresult.Replace("$s", g.Name); + outresult = outresult.Replace("$s", target.Guild.Name); outresult = outresult.Replace("$r", reason ?? NotifyReasonNone); try {