public static bool Is(this ServerCommand serverCommand, CommandInfo commandInfo) { if (serverCommand == null || commandInfo == null) return false; // remove last expression to allow commands requiring a prefix to work withput prefix return commandInfo.ContaisCommandName(serverCommand.MainCommand) && commandInfo.Options.RequiresPrefix == serverCommand.HasCommandPrefix; }