diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 1baa04270..4b3a67edf 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -112,6 +112,19 @@ namespace Discord.Commands if (msg.StartsWith(mention) && msg.Length > mention.Length) cmdMsg = msg.Substring(mention.Length + 1); } + + string mention2 = client.CurrentUser.NicknameMention; + if (mention2 != null) + { + if (msg.StartsWith(mention2) && msg.Length > mention2.Length) + cmdMsg = msg.Substring(mention2.Length + 1); + else + { + mention2 = $"@{client.CurrentUser.Name}"; + if (msg.StartsWith(mention2) && msg.Length > mention2.Length) + cmdMsg = msg.Substring(mention2.Length + 1); + } + } } //Check using custom activator