From 476627b55503edd0a565893f65e452bcb1660f41 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 19 Oct 2016 05:23:02 +0200 Subject: [PATCH] Fixed mentioning of roles/users on error --- src/NadekoBot/Services/CommandHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Services/CommandHandler.cs b/src/NadekoBot/Services/CommandHandler.cs index 628e883a..df6fc384 100644 --- a/src/NadekoBot/Services/CommandHandler.cs +++ b/src/NadekoBot/Services/CommandHandler.cs @@ -252,7 +252,7 @@ namespace NadekoBot.Services int index; if (!resetCommand && !pc.RootPermission.AsEnumerable().CheckPermissions(message, cmd.Text, cmd.Module.Name, out index)) { - var returnMsg = $"Permission number #{index + 1} **{pc.RootPermission.GetAt(index).GetCommand()}** is preventing this action."; + var returnMsg = $"Permission number #{index + 1} **{pc.RootPermission.GetAt(index).GetCommand(guild)}** is preventing this action."; return new Tuple(cmd, pc, SearchResult.FromError(CommandError.Exception, returnMsg)); }