diff --git a/src/Discord.Net.Commands/Command.cs b/src/Discord.Net.Commands/Command.cs index 2b8a46c77..b1ec3f0e1 100644 --- a/src/Discord.Net.Commands/Command.cs +++ b/src/Discord.Net.Commands/Command.cs @@ -169,8 +169,8 @@ namespace Discord.Commands private IReadOnlyList BuildParameters(MethodInfo methodInfo) { var parameters = methodInfo.GetParameters(); - if (parameters.Length == 0 || parameters[0].ParameterType != typeof(IUserMessage)) - throw new InvalidOperationException($"The first parameter of a command must be {nameof(IUserMessage)}."); + if (parameters.Length == 0 || parameters[0].ParameterType != typeof(CommandContext)) + throw new InvalidOperationException($"The first parameter of a command must be {nameof(CommandContext)}."); var paramBuilder = ImmutableArray.CreateBuilder(parameters.Length - 1); for (int i = 1; i < parameters.Length; i++)